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
This commit is contained in:
Benno Schulenberg 2014-06-25 09:05:55 +00:00
parent 45417c76f3
commit 0c0fbd585c
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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);