]> git.wh0rd.org Git - nano.git/commitdiff
Fixing compilation with --enable-wrapping.
authorBenno Schulenberg <bensberg@justemail.net>
Fri, 4 Apr 2014 20:16:59 +0000 (20:16 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Fri, 4 Apr 2014 20:16:59 +0000 (20:16 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4730 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/text.c

index 4b4e8134ef93167968363a18c2fff1462c666cb5..f02a8aba6fec33450b769930ade8c66699221d95 100644 (file)
--- 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.
index 635a926a86ba6cc26bf69a0804d32182b0098c17..c3623a454537bff1d092c333c84f5897558c6288 100644 (file)
@@ -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);