Fixing compilation with --enable-wrapping.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4730 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2014-04-04 20:16:59 +00:00
parent 96c95cd6a1
commit b115aab586
2 changed files with 3 additions and 0 deletions

View File

@ -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.

View 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);