From 7bde9988e8f7cd0457455a17e81d0f3192e28b44 Mon Sep 17 00:00:00 2001 From: Daan Vanden Bosch Date: Wed, 2 Oct 2019 18:32:00 +0200 Subject: [PATCH] Tiny bugfix. --- src/quest_editor/scripting/assembly_worker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quest_editor/scripting/assembly_worker.ts b/src/quest_editor/scripting/assembly_worker.ts index db0e4f0d..18d767f7 100644 --- a/src/quest_editor/scripting/assembly_worker.ts +++ b/src/quest_editor/scripting/assembly_worker.ts @@ -111,7 +111,7 @@ function signature_help(message: SignatureHelpInput): void { let opcode: Opcode | undefined; let active_param = -1; - if (message.line_no < lines.length) { + if (message.line_no <= lines.length) { const line = lines[message.line_no - 1]; const lexer = new AssemblyLexer(); const tokens = lexer.tokenize_line(line);