commit 85eb9b9a53953e921d482c279a73b04a80a19243
parent 484523b3bbffb201abcbc77e5d882cd619726841
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Thu, 30 May 2019 17:32:09 +0200
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.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/text.c b/src/text.c
@@ -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;