From 7bf8860601771be812e72c557fe9681c968bceaf Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 23 Dec 2022 13:07:37 -0500 Subject: identifier-trigger-characters setting --- autocomplete.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autocomplete.c') 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; -- cgit v1.2.3