diff --git a/src/BufferView.cpp b/src/BufferView.cpp index c58766846d..d0fbeb59f4 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -2856,7 +2856,7 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0) // Notify left insets if (cur != old) { bool badcursor = old.fixIfBroken() || cur.fixIfBroken(); - badcursor = badcursor || notifyCursorLeavesOrEnters(old, cur); + badcursor |= notifyCursorLeavesOrEnters(old, cur); if (badcursor) cursor().fixIfBroken(); }