aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-02-14 18:51:56 +0100
committerGitHub <noreply@github.com>2023-02-14 18:51:56 +0100
commit9a9a4d38a8091eeb1b1acee1c086313d97c4fd8a (patch)
treeb1e0fe82bd2a5dd0cd1b888e98cb483ec6f370d1 /src/nvim/buffer.c
parent264fb6945baed20b1f1ef4302ccd8a41e37b088e (diff)
parent39f8aaeb815c2e31cffec12ef36ad4f25df91602 (diff)
downloadrneovim-9a9a4d38a8091eeb1b1acee1c086313d97c4fd8a.tar.gz
rneovim-9a9a4d38a8091eeb1b1acee1c086313d97c4fd8a.tar.bz2
rneovim-9a9a4d38a8091eeb1b1acee1c086313d97c4fd8a.zip
Merge pull request #11756 from bfredl/crashfix
custom statusline crash containing unprintable unicode
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 5dcb10751f..129a8c6fb2 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -3311,7 +3311,7 @@ void maketitle(void)
buf_p += MIN(size, SPACE_FOR_FNAME);
} else {
buf_p += transstr_buf((const char *)path_tail(curbuf->b_fname),
- buf_p, SPACE_FOR_FNAME + 1, true);
+ -1, buf_p, SPACE_FOR_FNAME + 1, true);
}
switch (bufIsChanged(curbuf)