diff --git a/src/nano.c b/src/nano.c index c4c89c5c..d9d978b5 100644 --- a/src/nano.c +++ b/src/nano.c @@ -982,7 +982,7 @@ RETSIGTYPE do_continue(int signal) ungetch(KEY_FLUSH); } -#if !defined(NANO_TINY) || defined(ENABLE_SPELLER) +#if !defined(NANO_TINY) || defined(ENABLE_SPELLER) || defined(ENABLE_COLOR) /* Block or unblock the SIGWINCH signal, depending on the blockit parameter. */ void block_sigwinch(bool blockit) { diff --git a/src/text.c b/src/text.c index a0966c4a..68491b61 100644 --- a/src/text.c +++ b/src/text.c @@ -2063,10 +2063,10 @@ bool replace_buffer(const char *filename, undo_type action, const char *operatio /* Cut either the marked region or the whole buffer. */ add_undo(action, NULL); -#endif do_snip(openfile->mark != NULL, openfile->mark == NULL, FALSE); -#ifndef NANO_TINY update_undo(action); +#else + do_snip(FALSE, TRUE, FALSE); #endif /* Discard what was cut. */