summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-hook.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c
index d834cd58f..68f82a823 100644
--- a/src/core/wee-hook.c
+++ b/src/core/wee-hook.c
@@ -1052,6 +1052,7 @@ hook_print_exec (struct t_gui_buffer *buffer, struct t_gui_line *line)
&& (!HOOK_PRINT(ptr_hook, buffer)
|| (buffer == HOOK_PRINT(ptr_hook, buffer)))
&& (!HOOK_PRINT(ptr_hook, message)
+ || !HOOK_PRINT(ptr_hook, message)[0]
|| string_strcasestr (prefix_no_color, HOOK_PRINT(ptr_hook, message))
|| string_strcasestr (message_no_color, HOOK_PRINT(ptr_hook, message))))
{