From b115aab586a9c73f0b4c4fdb5d417399020cc476 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 4 Apr 2014 20:16:59 +0000 Subject: [PATCH] Fixing compilation with --enable-wrapping. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4730 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 1 + src/text.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4b4e8134..f02a8aba 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 * configure.ac: Remove unused '*_support' variables. diff --git a/src/text.c b/src/text.c index 635a926a..c3623a45 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); -- 2.39.5