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.
This commit is contained in:
Mitchell Hashimoto
2022-08-15 09:57:38 -07:00
parent e3ddffdf36
commit 3b7a6b78a7

View File

@ -392,7 +392,7 @@ fn queueWrite(self: *Window, data: []const u8) !void {
ttyWrite,
);
i += end;
i = end;
}
}