diff --git a/ChangeLog b/ChangeLog index 212a49457b232d64707a82e0beebc0dd3fef25de..675b6c4d0dfde2284c5f3350a6ab250a00a1dd9e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -80,6 +80,8 @@ CVS code - as a model. (DLR) - If file browsing succeeds, call statusq_abort() so that the cursor position at the statusbar is reset. (DLR) + - Add missing #ifdefs around the wrap_reset() call so that nano + compiles with wrapping disabled again. (DLR) do_writeout() - Restructure if blocks for greater efficiency, using do_insertfile() as a model. (DLR) diff --git a/src/files.c b/src/files.c index e3f5b1e4ea6b156f658d9ad66f94d6460fac12dd..93ee44ae700061146a551a5e8862f47fa1fbf8df 100644 --- a/src/files.c +++ b/src/files.c @@ -496,7 +496,9 @@ void do_insertfile( char *ans = mallocstrcpy(NULL, ""); /* The last answer the user typed on the statusbar. */ +#ifndef DISABLE_WRAPPING wrap_reset(); +#endif while (TRUE) { #ifndef NANO_SMALL