summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/main.c b/main.c
index f9f2014..18276d2 100644
--- a/main.c
+++ b/main.c
@@ -1,7 +1,5 @@
/*
@TODO:
-- LSP configuration in ted.cfg
- - disable publishDiagnostics for rust-analyzer (& others)?
- phantom completions
- debug-lsp option (which logs LSP messages)
- check LSP process status (TEST: what happens if LSP server is not installed)
@@ -747,11 +745,12 @@ int main(int argc, char **argv) {
// NOTE: we are not checking for signature help trigger
// characters because currently we ask for signature
// help any time a character is inserted.
-
- if (settings->identifier_trigger_characters
- && is32_word(last_char)
- && !is32_digit(last_char))
- autocomplete_open(ted, last_char);
+ if (is32_word(last_char)
+ && !is32_digit(last_char)) {
+ if (settings->identifier_trigger_characters) {
+ autocomplete_open(ted, last_char);
+ }
+ }
}
}