mirror of
https://github.com/neovim/neovim.git
synced 2026-10-29 17:10:23 -05:00
fix(drawline): missing NUL termination when drawing TAB (#27307)
This commit is contained in:
1 parent
fffc0e942d
commit
be1d09c427
1 file changed
+1
@@ -2230,6 +2230,7 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, int col_rows, s
|
||||
mb_c = schar_get_first_codepoint(mb_schar);
|
||||
char *p = get_extra_buf(len + 1);
|
||||
memset(p, ' ', len);
|
||||
p[len] = NUL;
|
||||
wlv.p_extra = p;
|
||||
for (int i = 0; i < tab_len; i++) {
|
||||
if (*p == NUL) {
|
||||
|
||||
Reference in new issue
Block a user