From 423ed031b4255657936cca30c91380a73c8e005e Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 29 May 2019 12:29:04 +0200 Subject: [PATCH] help: don't cycle through the buffers for every resizing step Closing a buffer automatically switches to the next buffer. But for the help-text buffer this is not the desired behavior, so each closing needs to be followed by a switch to the preceding buffer. This fixes https://savannah.gnu.org/bugs/?56411. --- src/help.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/help.c b/src/help.c index d549252e..46782230 100644 --- a/src/help.c +++ b/src/help.c @@ -72,8 +72,10 @@ void wrap_the_help_text(bool redisplaying) fclose(tempfile); - if (redisplaying) + if (redisplaying) { close_buffer(); + switch_to_prev_buffer(); + } open_buffer(tempfilename, TRUE); remove_magicline();