aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index 3e5639d23e..77ab948809 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -95,6 +95,10 @@ void ui_write(uint8_t *s, int len)
return;
}
+ if (!len) {
+ return;
+ }
+
char_u *tofree = NULL;
if (output_conv.vc_type != CONV_NONE) {