remove a few screen savers - some bugfixes

This commit is contained in:
kepler155c@gmail.com
2020-04-22 23:36:03 -06:00
parent 4576969739
commit 8d014c0098
5 changed files with 14 additions and 11 deletions

View File

@@ -94,7 +94,7 @@ function page:enable()
self.eject.value = config.eject
self.automatic.value = config.automatic
self.dir.x = math.floor((self.width / 2) - 3) + 1
self.dir:move(math.floor((self.width / 2) - 3) + 1, self.dir.y)
UI.Page.enable(self)
end
@@ -218,7 +218,7 @@ function page:copy()
self.progress:sync()
self.progress.value = 0
self.progress:clear()
-- self.progress:clear()
self:scan()

View File

@@ -43,10 +43,6 @@ local page = UI.Page {
return row
end,
draw = function(self)
self:adjustWidth()
UI.Grid.draw(self)
end,
},
accelerators = {
f = 'filter',

View File

@@ -575,6 +575,10 @@ local page = UI.Page {
actions.dirty_all()
actions.redraw()
end,
setCursorPos = function(self, cx, cy)
self.cursorBlink = cy >= 1 and cy <= self.height
UI.Window.setCursorPos(self, cx, cy)
end,
draw = function()
actions.redraw()
end,
@@ -715,7 +719,7 @@ local function redraw()
if dirty.y > 0 then
for dy = 1, h do
local sLine = tLines[dy + scrollY]
if sLine ~= nil then
if sLine and #sLine > 0 then
if dy + scrollY >= dirty.y and dy + scrollY <= dirty.ey then
page.editor:clearLine(dy)
writeHighlighted(sLine, dy + scrollY, dy)