mirror of
https://github.com/unarray/file-tree-generator.git
synced 2026-07-22 08:40:29 +00:00
Use cursor head position instead of to
This commit is contained in:
parent
c07ca77d09
commit
ef93a58e6d
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ export class GenerateTree implements Command {
|
|||
const files = (await getFiles(selectedPath)).map(file => file.replace(regex, ""));
|
||||
const structure = filesToExplorerEntity(files);
|
||||
const callouts = explorerEntityToCallout(structure);
|
||||
const cursorLine = editor.getCursor("to").line;
|
||||
const cursorLine = editor.getCursor("head").line;
|
||||
|
||||
editor.setLine(
|
||||
cursorLine,
|
||||
|
|
|
|||
Loading…
Reference in a new issue