build: fix compilation for --enable-tiny --enable-color --enable-nanorc

master
Benno Schulenberg 2020-06-22 14:00:23 +02:00
parent 5eb3b8feb5
commit 096e36279f
2 changed files with 3 additions and 3 deletions

View File

@ -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)
{

View File

@ -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. */