diff --git a/ChangeLog b/ChangeLog index d7ad7c536f6d48d5b6396f36354063199b5aba92..166403e2a4594b6fef50af7d6fad813ba0b11a89 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 <bensberg@justemail.net> * src/nano.c (window_init): Rename 'no_more_space()' to 'more_space()' diff --git a/src/text.c b/src/text.c index dc9952f35956f76905fe9ae9b0edc87740f92097..791dab9bba1e3464999745e60f274c8095396ccb 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;