Skip to content

Commit

Permalink
Fix incorrect condition in getting the actual text in command line
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPl292 committed Feb 24, 2025
1 parent e257a10 commit 4cf7685
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4cf7685

Please sign in to comment.