From: Kornel Benko Date: Fri, 29 Apr 2022 17:56:12 +0000 (+0200) Subject: Amend a83159f0: Use logical operator ||. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=48c069fa8aec72840dc55688e21c38c5dd321e66;p=features.git Amend a83159f0: Use logical operator ||. Clang is not mocking here, but it looks more consistent. --- 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(); }