fix tab behavior, should not print

This commit is contained in:
Mitchell Hashimoto
2022-07-14 13:43:38 -07:00
parent d242c64013
commit 3655609886
3 changed files with 24 additions and 2 deletions

View File

@@ -543,8 +543,8 @@ pub fn horizontalTab(self: *Terminal) !void {
defer tracy.end();
while (self.cursor.x < self.cols) {
// Clear
try self.print(' ');
// Move the cursor right
self.cursor.x += 1;
// If the last cursor position was a tabstop we return. We do
// "last cursor position" because we want a space to be written