]> git.wh0rd.org Git - nano.git/commitdiff
in shortcut_init(), fix misplaced #endif keeping the "Full Justify"
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Tue, 23 Nov 2004 20:42:35 +0000 (20:42 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Tue, 23 Nov 2004 20:42:35 +0000 (20:42 +0000)
shortcut in the search shortcut list from being included when NANO_SMALL
is defined but DISABLE_JUSTIFY isn't

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

ChangeLog
src/global.c

index 4831f39497d789f05ca29d70572fd7d1473fd0e2..cb0044c15f8482876f39a7ad3e42649bf02b74ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -21,6 +21,10 @@ CVS code -
          file if uncutting leaves the cursor on the current one, as
          it's actually a bug. (DLR)
 - global.c:
+  shortcut_init()
+       - Fix misplaced #endif keeping the "Full Justify" shortcut in
+         the search shortcut list from being included when NANO_SMALL
+         is defined but DISABLE_JUSTIFY isn't. (DLR)
   thanks_for_all_the_fish()
        - Free the justify buffer if it isn't empty. (DLR)
 - nano.c:
index 761d2e09691be90cafbf3b38393423abfc634399..3fbbb4cb6008620b4a46ccdaf9d80bd61e718007 100644 (file)
@@ -659,6 +659,7 @@ void shortcut_init(bool unjustify)
     sc_init_one(&whereis_list, NANO_HISTORY_KEY, history_msg,
        IFHELP(nano_editstr_msg, NANO_NO_KEY), NANO_NO_KEY,
        NANO_NO_KEY, VIEW, 0);
+#endif /* !NANO_SMALL */
 
 #ifndef DISABLE_JUSTIFY
     /* Translators: try to keep this string under 10 characters long */
@@ -666,7 +667,6 @@ void shortcut_init(bool unjustify)
        IFHELP(nano_fulljustify_msg, NANO_FULLJUSTIFY_ALTKEY),
        NANO_NO_KEY, NANO_NO_KEY, NOVIEW, do_full_justify);
 #endif
-#endif /* !NANO_SMALL */
 
     free_shortcutage(&replace_list);