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