nano

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

commit 484523b3bbffb201abcbc77e5d882cd619726841
parent 5a48edc9aecb10ad9b73372c1efea31ce7f7bc8f
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 30 May 2019 17:18:30 +0200

tweaks: drop two checks that were made redundant by the previous commit

Diffstat:
Msrc/files.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/files.c b/src/files.c @@ -604,7 +604,7 @@ void mention_name_and_linecount(void) void switch_to_adjacent_buffer(bool to_next) { /* If only one file buffer is open, say so and get out. */ - if (openfile == openfile->next && !inhelp) { + if (openfile == openfile->next) { statusbar(_("No more open file buffers")); return; } @@ -623,9 +623,6 @@ void switch_to_adjacent_buffer(bool to_next) /* Update titlebar and multiline info to match the current buffer. */ prepare_for_display(); - if (inhelp) - return; - /* Ensure that the main loop will redraw the help lines. */ currmenu = MMOST;