]> git.lyx.org Git - features.git/blobdiff - src/BufferView.cpp
FindAdv: Small improvements
[features.git] / src / BufferView.cpp
index 32c890c7982030952cea75d41a4ce4a06a07e4e8..ebca6f88a545e94792d1b2ef6e24d48be154ab3b 100644 (file)
@@ -2531,8 +2531,8 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0)
 
        // Notify left insets
        if (cur != old) {
-               bool badcursor = old.fixIfBroken() | cur.fixIfBroken();
-               badcursor |= notifyCursorLeavesOrEnters(old, cur);
+               bool badcursor = old.fixIfBroken() || cur.fixIfBroken();
+               badcursor = badcursor || notifyCursorLeavesOrEnters(old, cur);
                if (badcursor)
                        cursor().fixIfBroken();
        }