Skip to content

Commit 9ee98ab

Browse files
Fix: Move Inside Character when multiple character pairs are there (#9581)
1 parent e64cf83 commit 9ee98ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/motion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1894,7 +1894,7 @@ export abstract class MoveInsideCharacter extends ExpandingSelection {
18941894
break;
18951895
}
18961896
const lineText = vimState.document.lineAt(lineNum).text;
1897-
const matchIndex = lineText.indexOf(this.charToMatch);
1897+
const matchIndex = lineText.indexOf(this.charToMatch, selStart.character);
18981898
if (matchIndex !== -1) {
18991899
openPos = new Position(lineNum, matchIndex);
19001900
break;

0 commit comments

Comments
 (0)