From ae41cc48dd020cd7520cdccc4d00816035a36bb8 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Sat, 5 Aug 2023 15:15:03 +1000 Subject: [PATCH] fix tabs --- lib/vtansi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vtansi.lua b/lib/vtansi.lua index 1831a5f..6ae22ac 100644 --- a/lib/vtansi.lua +++ b/lib/vtansi.lua @@ -98,7 +98,7 @@ function vtansi.vtemu(gpu,bn) -- table number -- function -- takes GPU component cx,cy = 1, cy+1 checkCursor() elseif cc == "\t" then - wb=wb..(" "):rep(8*((cx+9)//8)) + wb=wb..(" "):rep((((cx//8)+1) * 8) - cx + 1) elseif cc == "\27" then flushwb() mode = 1