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.master
parent
484523b3bb
commit
85eb9b9a53
|
@ -999,7 +999,7 @@ bool execute_command(const char *command)
|
||||||
|
|
||||||
#ifdef ENABLE_MULTIBUFFER
|
#ifdef ENABLE_MULTIBUFFER
|
||||||
if (ISSET(MULTIBUFFER)) {
|
if (ISSET(MULTIBUFFER)) {
|
||||||
switch_to_prev_buffer();
|
openfile = openfile->prev;
|
||||||
if (openfile->mark)
|
if (openfile->mark)
|
||||||
do_cut_text(TRUE, TRUE, FALSE, FALSE);
|
do_cut_text(TRUE, TRUE, FALSE, FALSE);
|
||||||
} else
|
} else
|
||||||
|
@ -1028,7 +1028,7 @@ bool execute_command(const char *command)
|
||||||
|
|
||||||
#ifdef ENABLE_MULTIBUFFER
|
#ifdef ENABLE_MULTIBUFFER
|
||||||
if (ISSET(MULTIBUFFER))
|
if (ISSET(MULTIBUFFER))
|
||||||
switch_to_next_buffer();
|
openfile = openfile->next;
|
||||||
#endif
|
#endif
|
||||||
free_lines(cutbuffer);
|
free_lines(cutbuffer);
|
||||||
cutbuffer = was_cutbuffer;
|
cutbuffer = was_cutbuffer;
|
||||||
|
|
Loading…
Reference in New Issue