diff --git a/src/cut.c b/src/cut.c index ac0f45f3..3c0483cb 100644 --- a/src/cut.c +++ b/src/cut.c @@ -97,6 +97,13 @@ void do_deletion(undo_type action) /* We're at the end-of-file: nothing to do. */ return; +#ifdef ENABLE_COLOR + if (!refresh_needed) + check_the_multis(openfile->current); +#endif + if (!refresh_needed) + update_line(openfile->current, openfile->current_x); + /* Adjust the file size, and remember it for a possible redo. */ openfile->totsize--; #ifndef NANO_TINY diff --git a/src/nano.c b/src/nano.c index 85f9d551..aa76f025 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1665,17 +1665,7 @@ void process_a_keystroke(void) } else if (openfile->current != was_current) also_the_last = FALSE; } -#endif - if (!refresh_needed && (function == do_delete || function == do_backspace)) { -#ifdef ENABLE_COLOR - check_the_multis(openfile->current); - if (!refresh_needed) -#endif - update_line(openfile->current, openfile->current_x); - } - -#ifndef NANO_TINY if (bracketed_paste) suck_up_input_and_paste_it();