commit 51978197de6a3abfb8f98baf02761d4a5f242c08
Author: Koji Yokota <[email protected]>
Date: Sat Nov 8 14:46:54 2025 +0900
Suppress preedit caret when cursor is in mathed
---
src/frontends/qt/GuiInputMethod.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/frontends/qt/GuiInputMethod.cpp
b/src/frontends/qt/GuiInputMethod.cpp
index 71ae1e6ed5..55b9333e0c 100644
--- a/src/frontends/qt/GuiInputMethod.cpp
+++ b/src/frontends/qt/GuiInputMethod.cpp
@@ -717,7 +717,8 @@ std::array<int,2> GuiInputMethod::setCaretOffset(pos_type
caret_pos)
// This is also true for next_row_pos.
// On the other hand d->caret_pos_ counts preedit elements.
- if (d->preedit_str_.empty() || d->cur_->reverseDirectionNeeded()) {
+ if (d->preedit_str_.empty() || d->cur_->reverseDirectionNeeded() ||
+ d->cur_->inMathed()) {
// reset shift of the virtual caret as the preedit string is
cancelled
// this part is also visited right before starting preedit input
return {0, 0};
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs