From a83159f05170733069a2baf2237e81c033f33916 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Thu, 28 Apr 2022 21:06:37 -0400 Subject: [PATCH] Fix Clang 14 warning -Wbitwise-instead-of-logical Use the boolean operator '||' with bools instead of the bitwise operator '|'. --- src/BufferView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 32c890c798..30944ccf9c 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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(); -- 2.39.5