diff --git a/ldt.lua b/ldt.lua index 8b5609e..e0c0d1b 100644 --- a/ldt.lua +++ b/ldt.lua @@ -659,13 +659,10 @@ ldb = { select_pad(pads.src) while true do for _, p in pairs(pads) do - if p.dirty then - p:refresh() - end + p:refresh() end local s = " press 'q' to quit " stdscr:mvaddstr(math.floor(SCREEN_H - 1), math.floor((SCREEN_W - #s)), s) - C.doupdate() local c = stdscr:getch() local _exp_0 = c if C.KEY_DOWN == _exp_0 or C.KEY_SR == _exp_0 or ("j"):byte() == _exp_0 then diff --git a/ldt.moon b/ldt.moon index 943bd06..a13eb5e 100644 --- a/ldt.moon +++ b/ldt.moon @@ -460,11 +460,10 @@ ldb = { while true for _,p in pairs(pads) - if p.dirty - p\refresh! + p\refresh! s = " press 'q' to quit " stdscr\mvaddstr(math.floor(SCREEN_H - 1), math.floor((SCREEN_W-#s)), s) - C.doupdate! + --C.doupdate! c = stdscr\getch! switch c when C.KEY_DOWN, C.KEY_SR, ("j")\byte!