diff options
author | pommicket <pommicket@gmail.com> | 2022-12-23 13:07:37 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-23 13:07:37 -0500 |
commit | 7bf8860601771be812e72c557fe9681c968bceaf (patch) | |
tree | 035f7a767628daf8cdda1160555f39a8cfc698b7 /autocomplete.c | |
parent | e4774c14963bf51840bbf940c1181fe7fc7c3046 (diff) |
identifier-trigger-characters setting
Diffstat (limited to 'autocomplete.c')
-rw-r--r-- | autocomplete.c | 4 |
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; |