[LyX/master] Revert "Amend a83159f0: Use logical operator ||."

Scott Kostyshak skostysh at lyx.org
Mon Nov 11 20:32:49 UTC 2024


commit 92b656c17bf042775781de28699f19f9ae8d0bc4
Author: Scott Kostyshak <skostysh at lyx.org>
Date:   Mon Nov 11 21:30:12 2024 +0100

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


More information about the lyx-cvs mailing list