From 0c0fbd585cf5a1d59f910f1e62ea80f2918c5069 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 25 Jun 2014 09:05:55 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ src/browser.c | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4a888534..45326494 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-06-25 Benno Schulenberg + * 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 * 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. diff --git a/src/browser.c b/src/browser.c index 21b7375f..dfbb32ec 100644 --- a/src/browser.c +++ b/src/browser.c @@ -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); -- 2.39.5