summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/CodeParser/CodeParserController.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/CodeParser/CodeParserController.ts b/src/CodeParser/CodeParserController.ts
index 72aafa4..496005b 100644
--- a/src/CodeParser/CodeParserController.ts
+++ b/src/CodeParser/CodeParserController.ts
@@ -111,9 +111,8 @@ export default class CodeParserController {
currentPos.character - this.triggerSequence.length,
);
- let endReplace: Position = new Position(currentPos.line, currentPos.character + 1);
const nextLineText: string = window.activeTextEditor.document.lineAt(endReplace.line + 1).text;
- endReplace = new Position(currentPos.line + 1, nextLineText.length);
+ const endReplace = new Position(currentPos.line + 1, nextLineText.length);
parser.Parse(activeEditor, event).GenerateDoc(new Range(startReplace, endReplace));
}