nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit b115aab586a9c73f0b4c4fdb5d417399020cc476
parent 96c95cd6a1602d7eaa624ee0dde529491d2d130d
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Fri,  4 Apr 2014 20:16:59 +0000

Fixing compilation with --enable-wrapping.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4730 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 1+
Msrc/text.c | 2++
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git 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 @@ -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);