Skip to content

Commit c4da944

Browse files
authored
nes: long distance: put cursor at the end of the line (#1799)
1 parent be7d31c commit c4da944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension/xtab/node/xtabProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ export class XtabProvider implements IStatelessNextEditProvider {
907907
} else {
908908
const nextCursorLineOneBased = nextCursorLineZeroBased + 1;
909909
const nextCursorLine = promptPieces.activeDoc.documentAfterEditsLines.at(nextCursorLineZeroBased);
910-
const nextCursorColumn = (nextCursorLine?.match(/^(\s+)/)?.at(0)?.length ?? 0) + 1;
910+
const nextCursorColumn = (nextCursorLine?.length ?? 0) + 1;
911911
switch (nextCursorLinePrediction) {
912912
case NextCursorLinePrediction.Jump: {
913913
const nextCursorPosition = new Position(nextCursorLineOneBased, nextCursorColumn);

0 commit comments

Comments
 (0)