mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
fix(drawline): missing NUL termination when drawing TAB (#27307)
This commit is contained in:
parent
fffc0e942d
commit
be1d09c427
@ -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);
|
mb_c = schar_get_first_codepoint(mb_schar);
|
||||||
char *p = get_extra_buf(len + 1);
|
char *p = get_extra_buf(len + 1);
|
||||||
memset(p, ' ', len);
|
memset(p, ' ', len);
|
||||||
|
p[len] = NUL;
|
||||||
wlv.p_extra = p;
|
wlv.p_extra = p;
|
||||||
for (int i = 0; i < tab_len; i++) {
|
for (int i = 0; i < tab_len; i++) {
|
||||||
if (*p == NUL) {
|
if (*p == NUL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user