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

Fix incorrect condition in getting the actual text in command line

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

View File

@ -52,7 +52,7 @@ interface VimCommandLine {
get() {
val promptCharacterOffset1 = promptCharacterOffset
return if (promptCharacterOffset1 == null) visibleText else {
if (promptCharacterOffset1 >= visibleText.length) {
if (promptCharacterOffset1 > visibleText.length) {
logger.error("promptCharacterOffset1 >= visibleText.length: $promptCharacterOffset1 >= ${visibleText.length}")
visibleText
} else {