tweaks: reshuffle a condition, to probably avoid an unneeded calculation

Also frob three comments.
master
Benno Schulenberg 2021-01-04 11:35:31 +01:00
parent c96c343fac
commit 1236341746
1 changed files with 4 additions and 4 deletions

View File

@ -403,7 +403,7 @@ void draw_the_promptbar(void)
waddstr(bottomwin, expanded);
free(expanded);
if (base + breadth(answer) != COLS && the_page < end_page)
if (the_page < end_page && base + breadth(answer) != COLS)
mvwaddch(bottomwin, 0, COLS - 1, '>');
wattroff(bottomwin, interface_color_pair[PROMPT_BAR]);