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(); }