]> git.wh0rd.org Git - nano.git/commitdiff
Fixing compilation with --disable-browser.
authorBenno Schulenberg <bensberg@justemail.net>
Wed, 26 Mar 2014 19:59:45 +0000 (19:59 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Wed, 26 Mar 2014 19:59:45 +0000 (19:59 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4686 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/help.c

index 330106f5fbcebb070dc469abbd09e04e672583cf..f2460b018b9561d7996c24bcf9a2bf06969f7d4f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@
        vestiges of the obsolete '--enable-all' configure flag.
        * src/rcfile.c - Fix compilation with --disable-color.
        * src/rcfile.c - Allow (un)binding keys when colour is disabled.
+       * src/help.c - Fix compilation with --disable-browser.
 
 2014-03-26  Mike Frysinger  <vapier@gentoo.org>.
        * configure.ac - Clean up most of the --with/--enable flags:
index c492c27402c9db099297766d58cbd0f66b335692..9d81ea00ca06d992e0d91bd9ef1cb439c9b6a692 100644 (file)
@@ -551,14 +551,16 @@ void do_help_void(void)
 {
 #ifndef DISABLE_HELP
     /* Start the help browser, with the correct refresher for afterwards. */
+#ifndef DISABLE_BROWSER
     if (currmenu == MBROWSER || currmenu == MWHEREISFILE || currmenu == MGOTODIR)
        do_help(&browser_refresh);
     else
+#endif
        do_help(&edit_refresh);
 #else
     if (currmenu == MMAIN)
        nano_disabled_msg();
     else
        beep();
-#endif
+#endif /* !DISABLE_HELP */
 }