From: Benno Schulenberg Date: Fri, 20 Jun 2014 16:13:54 +0000 (+0000) Subject: Fixing compilation with --enable-tiny --enable-wrapping. X-Git-Tag: v2.3.5~61 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3b47ff756e9d997fb85296cad3a51b13c2d287ba;p=nano.git Fixing compilation with --enable-tiny --enable-wrapping. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4999 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index d7ad7c53..166403e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,7 @@ depends upon nanorc support, plus many other tweaks. * src/global.c (strtosc): Fix compilation with --enable-tiny --enable-histories --enable-nanorc. + * src/text.c: Fix compilation with --enable-tiny --enable-wrapping. 2014-06-19 Benno Schulenberg * src/nano.c (window_init): Rename 'no_more_space()' to 'more_space()' diff --git a/src/text.c b/src/text.c index dc9952f3..791dab9b 100644 --- a/src/text.c +++ b/src/text.c @@ -1215,7 +1215,9 @@ bool do_wrap(filestruct *line) /* If after_break doesn't end in a blank, make sure it ends in a * space. */ if (!is_blank_mbchar(end)) { +#ifndef NANO_TINY add_undo(ADD); +#endif line_len++; line->data = charealloc(line->data, line_len + 1); line->data[line_len - 1] = ' '; @@ -1224,7 +1226,9 @@ bool do_wrap(filestruct *line) after_break_len++; openfile->totsize++; openfile->current_x++; +#ifndef NANO_TINY update_undo(ADD); +#endif } next_line = line->next->data;