summaryrefslogtreecommitdiff
path: root/ide-autocomplete.c
diff options
context:
space:
mode:
Diffstat (limited to 'ide-autocomplete.c')
-rw-r--r--ide-autocomplete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ide-autocomplete.c b/ide-autocomplete.c
index 558b388..3ff138e 100644
--- a/ide-autocomplete.c
+++ b/ide-autocomplete.c
@@ -365,7 +365,7 @@ void autocomplete_process_lsp_response(Ted *ted, const LSPResponse *response) {
assert(0);
return;
}
- if (!lsp_response_is_error(response)) {
+ if (lsp_response_is_error(response)) {
autocomplete_close(ted);
ted_flash_error_cursor(ted);
return;