From 096e36279ffa8370b3f5163222ca87d84cc8fad8 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 22 Jun 2020 14:00:23 +0200 Subject: [PATCH] build: fix compilation for --enable-tiny --enable-color --enable-nanorc --- src/nano.c | 2 +- src/text.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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. */