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.
master
Benno Schulenberg 2019-05-29 12:29:04 +02:00
parent 57390cff04
commit 423ed031b4
1 changed files with 3 additions and 1 deletions

View File

@ -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();