]> git.wh0rd.org Git - nano.git/commitdiff
in get_prompt_string(), include the handling of the help key even when
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 23 Apr 2006 19:32:50 +0000 (19:32 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 23 Apr 2006 19:32:50 +0000 (19:32 +0000)
help is disabled, so that we aren't erroneously kicked out of the
statusbar prompt under any circumstances

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

ChangeLog
src/prompt.c

index c9d77969dcf97b7bb90923f75cecff2b53f01ffe..ae8cdb1c6fff7c1d53432f4de6f133f9d38ee5cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -114,6 +114,12 @@ CVS code -
 - nano.h:
        - Reorder the toggle #defines to match their corresponding order
          in toggle_init(). (DLR)
+- prompt.c:
+  get_prompt_string()
+       - Include the handling of the help key even when help is
+         disabled, so that we aren't erroneously kicked out of the
+         statusbar prompt under any circumstances. (DLR, found by Benno
+         Schulenberg)
 - rcfile.c:
   parse_argument()
        - Rename variable ptr_bak to ptr_save, for consistency. (DLR)
index ce3edcbbbf5d92f1873c3a70825c7d970cee988b..06070b04397453cc176bd19b43fd530d4e5ce6eb 100644 (file)
@@ -1050,17 +1050,17 @@ int get_prompt_string(bool allow_tabs,
                }
                break;
 #endif /* !NANO_TINY */
-#ifndef DISABLE_HELP
            case NANO_HELP_KEY:
                update_statusbar_line(answer, statusbar_x);
 
                /* This key has a shortcut list entry when it's used to
-                * to go to the help browser, which means that finished
-                * has been set to TRUE.  Set it back to FALSE here, so
-                * that we aren't kicked out of the statusbar prompt. */
+                * go to the help browser or display a message
+                * indicating that help is disabled, which means that
+                * finished has been set to TRUE.  Set it back to FALSE
+                * here, so that we aren't kicked out of the statusbar
+                * prompt. */
                finished = FALSE;
                break;
-#endif /* !DISABLE_HELP */
        }
 
        /* If we have a shortcut with an associated function, break out