aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSungyoon Cho <[email protected]>2024-09-09 17:58:44 +0900
committerGitHub <[email protected]>2024-09-09 09:58:44 +0100
commite1448732b3a463fc3aafc162d456a3db593253c8 (patch)
tree669e74c421ba46045973ad2e691b6196f2119cb1
parent7c4c402bd7f24241c096d809cc80408a469f15cb (diff)
downloadHyprland-e1448732b3a463fc3aafc162d456a3db593253c8.tar.gz
Hyprland-e1448732b3a463fc3aafc162d456a3db593253c8.zip
tiv1: fix deleting first character (#7716)
-rw-r--r--src/managers/input/TextInput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/input/TextInput.cpp b/src/managers/input/TextInput.cpp
index 4c2e326a..d488f173 100644
--- a/src/managers/input/TextInput.cpp
+++ b/src/managers/input/TextInput.cpp
@@ -264,7 +264,7 @@ void CTextInput::updateIMEState(SP<CInputMethodV2> ime) {
INPUT->preeditStyling(0, std::string(ime->current.preeditString.string).length(), ZWP_TEXT_INPUT_V1_PREEDIT_STYLE_HIGHLIGHT);
INPUT->preeditString(pV1Input->serial, ime->current.preeditString.string.c_str(), "");
} else {
- INPUT->preeditCursor(ime->current.preeditString.begin);
+ INPUT->preeditCursor(0);
INPUT->preeditStyling(0, 0, ZWP_TEXT_INPUT_V1_PREEDIT_STYLE_HIGHLIGHT);
INPUT->preeditString(pV1Input->serial, "", "");
}