commit 096e36279ffa8370b3f5163222ca87d84cc8fad8
parent 5eb3b8feb504cb77fa3e55cb97a23413dbf3315c
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 22 Jun 2020 14:00:23 +0200
build: fix compilation for --enable-tiny --enable-color --enable-nanorc
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git 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
@@ -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. */