mirror of git://git.sv.gnu.org/nano.git
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:
parent
45417c76f3
commit
0c0fbd585c
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue