From 92b656c17bf042775781de28699f19f9ae8d0bc4 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Mon, 11 Nov 2024 21:30:12 +0100 Subject: [PATCH] Revert "Amend a83159f0: Use logical operator ||." This reverts commit 48c069fa8aec72840dc55688e21c38c5dd321e66. The commit unintentionally changed behavior. See #13116. --- src/BufferView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }