added keybinding for 'G' to scroll to end of list
This commit is contained in:
parent
30c70e119e
commit
e90fac2c2f
1 changed files with 5 additions and 0 deletions
5
ccc.c
5
ccc.c
|
@ -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,7 @@ void show_file_content()
|
|||
FILE *file = fopen(get_filename((long) current_selection), "rb");
|
||||
if (file)
|
||||
{
|
||||
wclear(windows[1].window);
|
||||
fseek(file, 0, SEEK_END);
|
||||
long length = ftell(file);
|
||||
fseek(file, 0, SEEK_SET);
|
||||
|
|
Loading…
Reference in a new issue