Fix Clang 14 warning -Wbitwise-instead-of-logical

Use the boolean operator '||' with bools instead of the bitwise
operator '|'.
This commit is contained in:
Scott Kostyshak 2022-04-28 21:06:37 -04:00
parent e4416535e4
commit a83159f051

View File

@ -2531,7 +2531,7 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0)
// Notify left insets
if (cur != old) {
bool badcursor = old.fixIfBroken() | cur.fixIfBroken();
bool badcursor = old.fixIfBroken() || cur.fixIfBroken();
badcursor |= notifyCursorLeavesOrEnters(old, cur);
if (badcursor)
cursor().fixIfBroken();