mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-26 06:39:43 +03:00
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:
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
Block a user