summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-06-17 18:38:55 +0100
committerpommicket <pommicket@gmail.com>2023-06-17 18:38:55 +0100
commitaf946739afbf2a0728452d736b0a8bde7efa461e (patch)
tree583e13981a3663a36ce4e9e9e38036eaf529b054 /main.c
parent7e40fc996be11d0ab1b4735872f5fb48f6a59aac (diff)
ignore duplicate autocomplete suggestions for phantom
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index eb883a1..d56aa2e 100644
--- a/main.c
+++ b/main.c
@@ -1,6 +1,5 @@
/*
TODO:
-- select sole completion if all completions' textEdits are identical (e.g. SyntaxCharT___ in ted)
FUTURE FEATURES:
- autodetect indentation (tabs vs spaces)
- font setting & support for multiple fonts to cover more characters
@@ -131,6 +130,7 @@ static void error_signal_handler(int signum, siginfo_t *info, void *context) {
Ted *ted = error_signal_handler_ted;
if (ted) {
FILE *log = ted->log;
+
if (log) {
fprintf(log, "Signal %d: %s\n", signum, strsignal(signum));
fprintf(log, "errno = %d\n", info->si_errno);