diff --git a/src/nano.c b/src/nano.c index 14a9e42976bd6eeb8e89f07e251814834b3494fa..634fc9681340803b3ee496d3630da36899ebc656 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1319,10 +1319,12 @@ int do_input(bool *meta_key, bool *func_key, bool *s_or_t, bool * empty. Note that it should be empty if we're in view * mode. */ if (*s_or_t == TRUE || get_key_buffer_len() == 0) { +#ifndef DISABLE_WRAPPING /* If we got a shortcut or toggle, turn off prepending of * wrapped text. */ if (*s_or_t == TRUE) wrap_reset(); +#endif if (kbinput != NULL) { /* Display all the characters in the input buffer at