build: fix compilation for --enable-tiny --enable-color --enable-nanorc
parent
5eb3b8feb5
commit
096e36279f
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue