Fix a warning about ambiguous && and || in pager

This commit is contained in:
ridiculousfish 2020-08-27 14:14:05 -07:00
parent 09f189870e
commit b166baf7d6

View file

@ -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 !=