for clear line use gpu fill and not set

This commit is contained in:
payonel 2018-01-21 18:03:42 -08:00
parent 983185f5f2
commit 7e77662160

View File

@ -47,7 +47,7 @@ local function clear_line(window, _, n)
n = tonumber(n) or 0
local x = n == 0 and window.x or 1
local rep = n == 1 and window.x or window.width
window.gpu.set(x, window.y, (" "):rep(rep))
window.gpu.fill(x, window.y, rep, 1, " ")
end
rules[{"%[", "[012]?", "K"}] = clear_line