neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit be1d09c4272212ea9b354c900603568d238b4ab3
parent fffc0e942d94ad9529713045d87588d945039ec4
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Fri,  2 Feb 2024 22:31:57 +0800

fix(drawline): missing NUL termination when drawing TAB (#27307)


Diffstat:
Msrc/nvim/drawline.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/nvim/drawline.c b/src/nvim/drawline.c @@ -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) {