tweaks: use a cheaper way to switch between buffers where possible

For this one quick switch back and forth there is no need to report
anything on the status bar nor to update colors and such.  In this
case, those things are just a waste of time.
This commit is contained in:
Benno Schulenberg 2019-05-30 17:32:09 +02:00
parent 484523b3bb
commit 85eb9b9a53

View File

@ -999,7 +999,7 @@ bool execute_command(const char *command)
#ifdef ENABLE_MULTIBUFFER
if (ISSET(MULTIBUFFER)) {
switch_to_prev_buffer();
openfile = openfile->prev;
if (openfile->mark)
do_cut_text(TRUE, TRUE, FALSE, FALSE);
} else
@ -1028,7 +1028,7 @@ bool execute_command(const char *command)
#ifdef ENABLE_MULTIBUFFER
if (ISSET(MULTIBUFFER))
switch_to_next_buffer();
openfile = openfile->next;
#endif
free_lines(cutbuffer);
cutbuffer = was_cutbuffer;