summaryrefslogtreecommitdiff
path: root/autocomplete.c
diff options
context:
space:
mode:
Diffstat (limited to 'autocomplete.c')
-rw-r--r--autocomplete.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/autocomplete.c b/autocomplete.c
index a71e45a..335a502 100644
--- a/autocomplete.c
+++ b/autocomplete.c
@@ -128,10 +128,10 @@ static void autocomplete_process_lsp_response(Ted *ted, const LSPResponse *respo
bool was_waiting = ac->waiting_for_lsp;
ac->waiting_for_lsp = false;
if (!ac->open) {
- // user hit escape before completions arrived.
+ // user hit escape or down or something before completions arrived.
return;
}
- // @TODO: check if same buffer is open and if cursor has moved
+
const LSPRequest *request = &response->request;
if (request->type == LSP_REQUEST_COMPLETION) {
const LSPResponseCompletion *completion = &response->data.completion;