Commit 0c0fbd58 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Allowing 'firstfile' and 'lastfile' to be rebound to Ctrl keys.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5019 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 7 additions and 4 deletions
+7 -4
2014-06-25 Benno Schulenberg <bensberg@justemail.net>
* src/browser.c (do_browser): Allow 'firstfile' and 'lastfile' to be
rebound to Ctrl keys -- checking meta_key is wrong, the function has
already been determined, that is all that matters.
2014-06-23 Benno Schulenberg <bensberg@justemail.net>
* src/nano.h, src/move.c (do_up, do_down), src/winio.c (edit_scrol):
Rename UP_DIR and DOWN_DIR to UPWARD and DOWNWARD, for clarity.
......
......@@ -193,11 +193,9 @@ char *do_browser(char *path, DIR *dir)
if (selected > filelist_len - 1)
selected = filelist_len - 1;
} else if (f->scfunc == do_first_file) {
if (meta_key)
selected = 0;
selected = 0;
} else if (f->scfunc == do_last_file) {
if (meta_key)
selected = filelist_len - 1;
selected = filelist_len - 1;
} else if (f->scfunc == goto_dir_void) {
/* Go to a specific directory. */
curs_set(1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment