]> git.lyx.org Git - features.git/commitdiff
Amend a83159f0: Use logical operator ||.
authorKornel Benko <kornel@lyx.org>
Fri, 29 Apr 2022 17:56:12 +0000 (19:56 +0200)
committerKornel Benko <kornel@lyx.org>
Fri, 29 Apr 2022 17:56:12 +0000 (19:56 +0200)
Clang is not mocking here, but it looks more consistent.

src/BufferView.cpp

index 30944ccf9c764496788f6954b06137483331b2f1..ebca6f88a545e94792d1b2ef6e24d48be154ab3b 100644 (file)
@@ -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();
        }