豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
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)