mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Fix a warning about ambiguous && and || in pager
This commit is contained in:
parent
09f189870e
commit
b166baf7d6
1 changed files with 1 additions and 1 deletions
|
@ -580,7 +580,7 @@ bool pager_t::rendering_needs_update(const page_rendering_t &rendering) const {
|
|||
// Common case is no pager.
|
||||
if (this->empty() && rendering.screen_data.empty()) return false;
|
||||
|
||||
return this->empty() && !rendering.screen_data.empty() || // Do update after clear().
|
||||
return (this->empty() && !rendering.screen_data.empty()) || // Do update after clear().
|
||||
rendering.term_width != this->available_term_width || //
|
||||
rendering.term_height != this->available_term_height || //
|
||||
rendering.selected_completion_idx !=
|
||||
|
|
Loading…
Reference in a new issue