From 460738e02de0b018c5caf1a2abe66441897ae5c8 Mon Sep 17 00:00:00 2001 From: bfredl Date: Sat, 18 Oct 2025 19:29:04 +0200 Subject: [PATCH] fix(tui): use the correct offset for invisible cursor after sync fixes #36237 --- src/nvim/tui/tui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 88443f079d..9856deeeee 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -2451,7 +2451,7 @@ static size_t flush_buf_end(TUIData *tui, char *buf, size_t len) } TPVAR null_params[9] = { 0 }; if (str != NULL) { - offset += terminfo_fmt(buf, buf + len, str, null_params); + offset += terminfo_fmt(buf + offset, buf + len, str, null_params); } return offset;