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.
This commit is contained in:
Benno Schulenberg 2018-08-21 21:14:32 +02:00
parent 03f9761c35
commit 8d6b205e4c
2 changed files with 1 additions and 2 deletions

View File

@ -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;
}

View File

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