1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-05-07 21:34:09 +02:00

Remove the change of ordering inside the clearPromptCharacter

This commit is contained in:
Alex Plate 2025-02-24 12:43:39 +02:00
parent 4cf7685aaf
commit 6feb1a4525
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -106,12 +106,9 @@ interface VimCommandLine {
fun clearPromptCharacter() {
if (promptCharacterOffset == null) return
// Note: We have to set promptCharacterOffset to null first, because when we set the new text,
// the listener will be called, which will try to get the actual text again. And, if this field isn't null,
// it will get an incorrect result.
promptCharacterOffset = null
setText(actualText)
caret.offset = min(caret.offset, visibleText.length)
promptCharacterOffset = null
}
fun clearCurrentAction()