Merge pull request #7 from piotr-marendowski/develop

Develop
This commit is contained in:
Night Kaly 2024-03-09 19:56:10 +00:00 committed by GitHub
commit ad522c303b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

6
ccc.c
View file

@ -99,6 +99,10 @@ int main(int argc, char** argv)
}
highlight_current_line();
break;
case 'G':
current_selection = files_len() - 1;
highlight_current_line();
break;
case 27: // esc
break;
case KEY_RESIZE:
@ -184,6 +188,8 @@ void show_file_content()
FILE *file = fopen(get_filename((long) current_selection), "rb");
if (file)
{
wclear(windows[1].window);
draw_border_title(windows[1].window, true);
fseek(file, 0, SEEK_END);
long length = ftell(file);
fseek(file, 0, SEEK_SET);