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