From 431b152726013ec6a5cece0285e7c103673bc511 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 23 Apr 2023 08:12:44 +0800 Subject: vim-patch:9.0.1479: small source file problems; outdated list of distrib. files (#23272) Problem: Small source file problems; outdated list of distributed files. Solution: Small updates to source files and list of distributed files. https://github.com/vim/vim/commit/f39d9e9dca443e42920066be3a98fd9780e4ed33 Co-authored-by: Bram Moolenaar --- src/nvim/getchar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/getchar.c') 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; -- cgit