]> git.wh0rd.org Git - nano.git/commitdiff
Fixing compilation with --enable-justify and tiny.
authorBenno Schulenberg <bensberg@justemail.net>
Fri, 4 Apr 2014 15:52:52 +0000 (15:52 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Fri, 4 Apr 2014 15:52:52 +0000 (15:52 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4726 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/text.c

index 9450cf3c95b87820564591de3d09cb3ee1e4ffca..2983c6c61058dec9073ebb0a97e391f210ebe974 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@
        * configure.ac: Allow other enablers to override --enable-tiny too.
        * src/{proto.h,search.c}: Fix compilation with --enable-browser.
        * src/global.c (shortcut_init): Fix warnings with --enable-help.
+       * src/text.c (do_justify): Fix compilation with --enable-justify.
 
 2014-04-03  Benno Schulenberg  <bensberg@justemail.net>
        * configure.ac: Remove unused '*_support' variables.
index 1fc7d74320adf75ed5cf99e616b611527afc6889..635a926a86ba6cc26bf69a0804d32182b0098c17 100644 (file)
@@ -1979,7 +1979,9 @@ void do_justify(bool full_justify)
     if (full_justify)
        openfile->current = openfile->fileage;
 
+#ifndef NANO_TINY
     allow_pending_sigwinch(FALSE);
+#endif
 
     while (TRUE) {
        size_t i;
@@ -2352,8 +2354,9 @@ void do_justify(bool full_justify)
     shortcut_init(FALSE);
     display_main_list();
 
+#ifndef NANO_TINY
     allow_pending_sigwinch(TRUE);
-
+#endif
 }
 
 /* Justify the current paragraph. */