From b166baf7d67b520de227de02ada771a8023066de Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Thu, 27 Aug 2020 14:14:05 -0700 Subject: [PATCH] Fix a warning about ambiguous && and || in pager --- src/pager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pager.cpp b/src/pager.cpp index 4357462ab..7a5407aed 100644 --- a/src/pager.cpp +++ b/src/pager.cpp @@ -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 !=