diff options
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 69a371ccf9..15f2e6d06f 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -161,7 +161,7 @@ static char *get_buffcont(buffheader_T *buffer, int dozero) count += strlen(bp->b_str); } - if (count || dozero) { + if (count > 0 || dozero) { p = xmalloc(count + 1); char *p2 = p; for (const buffblock_T *bp = buffer->bh_first.b_next; |