aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-23 08:12:44 +0800
committerGitHub <noreply@github.com>2023-04-23 08:12:44 +0800
commit431b152726013ec6a5cece0285e7c103673bc511 (patch)
tree8feae947c1f7672f1ac03c2e3f2dc91ad291c115 /src/nvim/getchar.c
parent540d6c595bc8e1b298dce51211b5d39e25e17d03 (diff)
downloadrneovim-431b152726013ec6a5cece0285e7c103673bc511.tar.gz
rneovim-431b152726013ec6a5cece0285e7c103673bc511.tar.bz2
rneovim-431b152726013ec6a5cece0285e7c103673bc511.zip
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 <Bram@vim.org>
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c2
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;