From 04246a63c6ad3f38fbff7c3d3600c0d34ea7a23f Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Sat, 27 May 2017 17:44:27 +0000 Subject: [PATCH] fixed a bug that had been annoying for me a bit with tab spacing --- modules/drivers/tty.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/drivers/tty.lua b/modules/drivers/tty.lua index 7f31c89..937a3ca 100644 --- a/modules/drivers/tty.lua +++ b/modules/drivers/tty.lua @@ -17,7 +17,7 @@ function tty(gA,sA,sI,fg,bg) if c == "\n" then cx,cy=1,cy+1 elseif c == "\r" then cx=1 elseif c == "\f" then cx=1 cy=1 gP.fill(1, 1, sx, sy, " ") - elseif c == "\t" then cx=cx+4-((cx+4)%4) + elseif c == "\t" then cx=(cx+4-((cx+4)%4))+1 elseif c == "\127" then cx=cx-1 gP.set(cx,cy," ") else gP.set(cx,cy,c) cx=cx+1 end cv()