]> git.wh0rd.org Git - nano.git/commitdiff
really fix input parsing in the file browser
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 9 Feb 2006 22:53:54 +0000 (22:53 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 9 Feb 2006 22:53:54 +0000 (22:53 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3292 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/browser.c

index 1141b26f23258fa3558f3e14d8caaf2b50feced0..c3792b637538ebe4a37c69ea9fb51b88cc740d3e 100644 (file)
@@ -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);