commit 965120b954d5208d4ca9d780566e214ebe0d8416
Author: Scott Kostyshak <[email protected]>
Date: Tue Apr 15 14:50:18 2025 +0200
Revert "Fix Clang 14 warning -Wbitwise-instead-of-logical"
This reverts commit a83159f05170733069a2baf2237e81c033f33916.
This commit introduced unintended behavior. Specifically, the side
effects of the fixIfBroken() calls are important.
See #13116.
---
src/BufferView.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index 3748c7166d..5694ee29d4 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -2887,7 +2887,7 @@ void BufferView::mouseEventDispatch(FuncRequest const &
cmd0)
// Notify left insets
if (cur != old) {
- bool badcursor = old.fixIfBroken() || cur.fixIfBroken();
+ bool badcursor = old.fixIfBroken() | cur.fixIfBroken();
badcursor |= notifyCursorLeavesOrEnters(old, cur);
if (badcursor)
cursor().fixIfBroken();
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs