From 48c069fa8aec72840dc55688e21c38c5dd321e66 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Fri, 29 Apr 2022 19:56:12 +0200 Subject: [PATCH] Amend a83159f0: Use logical operator ||. Clang is not mocking here, but it looks more consistent. --- src/BufferView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 30944ccf9c..ebca6f88a5 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -2532,7 +2532,7 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0) // Notify left insets if (cur != old) { bool badcursor = old.fixIfBroken() || cur.fixIfBroken(); - badcursor |= notifyCursorLeavesOrEnters(old, cur); + badcursor = badcursor || notifyCursorLeavesOrEnters(old, cur); if (badcursor) cursor().fixIfBroken(); }