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.master
parent
03f9761c35
commit
8d6b205e4c
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue