Skip to content

Commit 0dbbb96

Browse files
committed
fix: Fix header command issue.
1 parent 3c70c74 commit 0dbbb96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ export const header: ICommand = {
3131
changes: {
3232
from: lineInfo.from,
3333
to: lineInfo.to,
34-
insert: `${mark}${title}`,
34+
insert: `${mark} ${title}`,
3535
},
3636
// selection: EditorSelection.range(lineInfo.from + mark.length, lineInfo.to),
37-
selection: { anchor: lineInfo.from + mark.length },
37+
selection: { anchor: lineInfo.from + mark.length + 1 },
3838
});
3939
},
4040
};

0 commit comments

Comments
 (0)