nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit a8a905008363bd5e743f7288d48b239656f7e372
parent 83262546438a7cd80537b978c5bab3d73ca3f930
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Thu,  9 Feb 2006 22:53:54 +0000

really fix input parsing in the file browser


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3292 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/browser.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/browser.c b/src/browser.c @@ -95,8 +95,6 @@ char *do_browser(char *path, DIR *dir) if (width != 0) fileline /= width; - parse_browser_input(&kbinput, &meta_key, &func_key); - switch (kbinput) { #ifndef DISABLE_MOUSE case KEY_MOUSE: @@ -408,8 +406,10 @@ char *do_browser(char *path, DIR *dir) } wnoutrefresh(edit); - } while ((kbinput = get_kbinput(edit, &meta_key, &func_key)) != - NANO_EXIT_KEY); + + kbinput = get_kbinput(edit, &meta_key, &func_key); + parse_browser_input(&kbinput, &meta_key, &func_key); + } while (kbinput != NANO_EXIT_KEY); blank_edit(); titlebar(NULL);