From 85eb9b9a53953e921d482c279a73b04a80a19243 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 30 May 2019 17:32:09 +0200 Subject: [PATCH] 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. --- src/text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/text.c b/src/text.c index 64980a80..7a264d39 100644 --- 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;