commit 8d6b205e4cf76490a7174bcadd9260078359a14a
parent 03f9761c35b22b9cce80cb049832581170d1e42e
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 21 Aug 2018 21:14:32 +0200
tweaks: remove a superfluous condition and a redundant refresh
When 'inhelp' is true, there are at least two buffers open: an
edit buffer and the help-text buffer.
And bottombars() already does a full refresh of the bottom window.
Diffstat:
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/files.c b/src/files.c
@@ -636,7 +636,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;
}
diff --git a/src/help.c b/src/help.c
@@ -161,7 +161,6 @@ void do_help(void)
didfind = 0;
bottombars(MHELP);
- wnoutrefresh(bottomwin);
/* Extract the title from the head of the help text. */
length = break_line(help_text, MAX_BUF_SIZE, TRUE);