]> git.wh0rd.org Git - nano.git/commitdiff
fix do_help() meta key breakage
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Sat, 6 May 2006 02:51:33 +0000 (02:51 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Sat, 6 May 2006 02:51:33 +0000 (02:51 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3476 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/help.c

index a48b7232f6dcb7db376f3020a5d3b517c4583562..3ca686b26e0e87e96ba1c6b800d382db1cf4d1c0 100644 (file)
@@ -127,16 +127,17 @@ void do_help(void (*refresh_func)(void))
                    line++;
                break;
            case NANO_FIRSTLINE_ALTKEY:
-               line = 0;
+               if (meta_key)
+                   line = 0;
                break;
            case NANO_LASTLINE_ALTKEY:
-               if (last_line > editwinrows)
+               if (meta_key && last_line > editwinrows)
                    line = last_line - (editwinrows - 1);
                break;
        }
 
-       if ((kbinput != ERR && line == old_line) || kbinput ==
-               NANO_REFRESH_KEY)
+       if ((kbinput != ERR && line == old_line) || (!meta_key &&
+               !func_key && kbinput == NANO_REFRESH_KEY))
            goto skip_redisplay;
 
        blank_edit();