diff options
Diffstat (limited to 'ide-autocomplete.c')
-rw-r--r-- | ide-autocomplete.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ide-autocomplete.c b/ide-autocomplete.c index 6089818..558b388 100644 --- a/ide-autocomplete.c +++ b/ide-autocomplete.c @@ -365,6 +365,11 @@ void autocomplete_process_lsp_response(Ted *ted, const LSPResponse *response) { assert(0); return; } + if (!lsp_response_is_error(response)) { + autocomplete_close(ted); + ted_flash_error_cursor(ted); + return; + } TextBuffer *buffer = ted->active_buffer; if (!buffer) |