in do_insertfile(), add missing #ifdefs around the wrap_reset() call so
that nano compiles with wrapping disabled again git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1970 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
045883aa34
Коммит
487149e713
@ -80,6 +80,8 @@ CVS code -
|
|||||||
as a model. (DLR)
|
as a model. (DLR)
|
||||||
- If file browsing succeeds, call statusq_abort() so that the
|
- If file browsing succeeds, call statusq_abort() so that the
|
||||||
cursor position at the statusbar is reset. (DLR)
|
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()
|
do_writeout()
|
||||||
- Restructure if blocks for greater efficiency, using
|
- Restructure if blocks for greater efficiency, using
|
||||||
do_insertfile() as a model. (DLR)
|
do_insertfile() as a model. (DLR)
|
||||||
|
@ -496,7 +496,9 @@ void do_insertfile(
|
|||||||
char *ans = mallocstrcpy(NULL, "");
|
char *ans = mallocstrcpy(NULL, "");
|
||||||
/* The last answer the user typed on the statusbar. */
|
/* The last answer the user typed on the statusbar. */
|
||||||
|
|
||||||
|
#ifndef DISABLE_WRAPPING
|
||||||
wrap_reset();
|
wrap_reset();
|
||||||
|
#endif
|
||||||
|
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
#ifndef NANO_SMALL
|
#ifndef NANO_SMALL
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user