wm: teppich

Download patch

ref: 151d1d7500734dc63d8eea6dccdb246438725329
parent: 723fef923f921a56f4fed76e549c173fd3408887
author: mkf <mkf@cloud9p.org>
date: Wed Dec 6 18:33:53 EST 2023

fix dynamic \t, it appears we did one more than needed.

--- a/pc/vga.c
+++ b/pc/vga.c
@@ -86,7 +86,11 @@
 			return;
 		case '\t':
 			/* dynamic tab! */	
-			int dst = (vga_col % 8) + 1;
+			int dst = (vga_col % 8);
+			char *s;
+			s = malloc(10);
+			com_puts(itoa(dst, s, 10));
+			com_puts("\t");
 			for(int i = 0 ; i < dst ; i++)
 				vga_putc(' ');
 			return;