diff --git a/ChangeLog b/ChangeLog index 4b4e8134ef93167968363a18c2fff1462c666cb5..f02a8aba6fec33450b769930ade8c66699221d95 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18,6 +18,7 @@ * src/prompt.c (get_prompt_string): Fix compilation for the combination of --enable-tiny with --enable-tabcomp. * src/prompt.c (get_prompt_string): Normalize the indentation. + * src/text.c (do_wrap): Fix compilation with --enable-wrapping. 2014-04-03 Benno Schulenberg <bensberg@justemail.net> * configure.ac: Remove unused '*_support' variables. diff --git a/src/text.c b/src/text.c index 635a926a86ba6cc26bf69a0804d32182b0098c17..c3623a454537bff1d092c333c84f5897558c6288 100644 --- a/src/text.c +++ b/src/text.c @@ -1273,8 +1273,10 @@ bool do_wrap(filestruct *line, bool undoing) null_at(&line->data, wrap_loc); if (prepending) { +#ifndef NANO_TINY if (!undoing) update_undo(SPLIT); +#endif /* If we're prepending, copy the text from the next line, minus * the indentation that we already copied above. */ strcat(new_line, next_line);