summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
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);