summaryrefslogtreecommitdiffstats
path: root/src/CodeParser
diff options
context:
space:
mode:
authorRowan Goemans <RB.Goemans@student.han.nl>2017-11-23 19:53:22 +0100
committerRowan Goemans <RB.Goemans@student.han.nl>2017-11-23 19:53:22 +0100
commit08445144517d2cd1ac97e737b1bda0e65db6c999 (patch)
treeafbb10a60e9e17e2e50a0ce05d79ff25a60bf2b9 /src/CodeParser
parent126868ba799668d94f3c34ce05d8c62b62173c2b (diff)
downloaddoxdocgen-08445144517d2cd1ac97e737b1bda0e65db6c999.tar.gz
-- Fixed error where endReplace was used before declaration.
Diffstat (limited to 'src/CodeParser')
-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));