mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 18:46:00 +01:00
tiv1: fix deleting first character (#7716)
This commit is contained in:
parent
7c4c402bd7
commit
e1448732b3
1 changed files with 1 additions and 1 deletions
|
@ -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->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(), "");
|
INPUT->preeditString(pV1Input->serial, ime->current.preeditString.string.c_str(), "");
|
||||||
} else {
|
} else {
|
||||||
INPUT->preeditCursor(ime->current.preeditString.begin);
|
INPUT->preeditCursor(0);
|
||||||
INPUT->preeditStyling(0, 0, ZWP_TEXT_INPUT_V1_PREEDIT_STYLE_HIGHLIGHT);
|
INPUT->preeditStyling(0, 0, ZWP_TEXT_INPUT_V1_PREEDIT_STYLE_HIGHLIGHT);
|
||||||
INPUT->preeditString(pV1Input->serial, "", "");
|
INPUT->preeditString(pV1Input->serial, "", "");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue