From: Benno Schulenberg Date: Fri, 4 Apr 2014 15:52:52 +0000 (+0000) Subject: Fixing compilation with --enable-justify and tiny. X-Git-Tag: v2.3.3~204 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=36c87bcfd5f31d394b7ff368773073136aa8d7e8;p=nano.git Fixing compilation with --enable-justify and tiny. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4726 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 9450cf3c..2983c6c6 100644 --- 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 * configure.ac: Remove unused '*_support' variables. diff --git a/src/text.c b/src/text.c index 1fc7d743..635a926a 100644 --- a/src/text.c +++ b/src/text.c @@ -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. */