diff options
| author | Rowan Goemans <RB.Goemans@student.han.nl> | 2017-11-23 19:53:22 +0100 |
|---|---|---|
| committer | Rowan Goemans <RB.Goemans@student.han.nl> | 2017-11-23 19:53:22 +0100 |
| commit | 08445144517d2cd1ac97e737b1bda0e65db6c999 (patch) | |
| tree | afbb10a60e9e17e2e50a0ce05d79ff25a60bf2b9 | |
| parent | 126868ba799668d94f3c34ce05d8c62b62173c2b (diff) | |
| download | doxdocgen-08445144517d2cd1ac97e737b1bda0e65db6c999.tar.gz | |
-- Fixed error where endReplace was used before declaration.
| -rw-r--r-- | src/CodeParser/CodeParserController.ts | 2 |
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)); |