mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-10 11:32:11 +03:00
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:
parent
484523b3bb
commit
85eb9b9a53
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user