nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 423ed031b4255657936cca30c91380a73c8e005e
parent 57390cff04dea43792f4ab3b52bc7bd442af8f90
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 29 May 2019 12:29:04 +0200

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.

Diffstat:
Msrc/help.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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();