summaryrefslogtreecommitdiffstats
path: root/src/CodeParser/CodeParserController.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/CodeParser/CodeParserController.ts')
-rw-r--r--src/CodeParser/CodeParserController.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CodeParser/CodeParserController.ts b/src/CodeParser/CodeParserController.ts
index 496005b..f4c07de 100644
--- a/src/CodeParser/CodeParserController.ts
+++ b/src/CodeParser/CodeParserController.ts
@@ -111,7 +111,7 @@ export default class CodeParserController {
currentPos.character - this.triggerSequence.length,
);
- const nextLineText: string = window.activeTextEditor.document.lineAt(endReplace.line + 1).text;
+ const nextLineText: string = window.activeTextEditor.document.lineAt(startReplace.line + 1).text;
const endReplace = new Position(currentPos.line + 1, nextLineText.length);
parser.Parse(activeEditor, event).GenerateDoc(new Range(startReplace, endReplace));