fix(tui): use the correct offset for invisible cursor after sync

fixes #36237
This commit is contained in:
bfredl
2025-10-18 19:29:04 +02:00
parent 68a54bfda6
commit 460738e02d

View File

@@ -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;