commit 86d90f3fff9e3aca6999b42813da66987daafc86
parent d44d7f7c5e3c4f8d9b03d70cd1f728bb3fe9c41d
Author: bfredl <bjorn.linse@gmail.com>
Date: Sat, 18 Oct 2025 13:05:59 +0200
Merge pull request #36234 from bfredl/neoterm2
fix(tui): CSI is not ESC (sync mode)
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c
@@ -2409,7 +2409,7 @@ static size_t flush_buf_start(TUIData *tui, char *buf, size_t len)
FUNC_ATTR_NONNULL_ALL
{
if (tui->sync_output && tui->has_sync_mode) {
- return xstrlcpy(buf, "\x1b?2026h", len);
+ return xstrlcpy(buf, "\x1b[?2026h", len);
} else if (!tui->is_invisible) {
tui->is_invisible = true;
@@ -2436,7 +2436,7 @@ static size_t flush_buf_end(TUIData *tui, char *buf, size_t len)
{
size_t offset = 0;
if (tui->sync_output && tui->has_sync_mode) {
-#define SYNC_END "\x1b?2026l"
+#define SYNC_END "\x1b[?2026l"
memcpy(buf, SYNC_END, sizeof SYNC_END);
offset += sizeof SYNC_END - 1;
}