From 3b7a6b78a7d474c99a26edcfda81e3fc006c7bbe Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 15 Aug 2022 09:57:38 -0700 Subject: [PATCH] fix ttyWrite calculation to avoid truncating data the math was wrong. The easiest way to see this was attempting to paste a large chunk of text, it'd just skip certain parts and truncate it. --- src/Window.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Window.zig b/src/Window.zig index b0c78d063..75935e398 100644 --- a/src/Window.zig +++ b/src/Window.zig @@ -392,7 +392,7 @@ fn queueWrite(self: *Window, data: []const u8) !void { ttyWrite, ); - i += end; + i = end; } }