Use cursor head position instead of to

This commit is contained in:
Unarray 2023-08-24 10:19:53 +02:00
parent c07ca77d09
commit ef93a58e6d

View file

@ -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,