remove a few screen savers - some bugfixes
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -43,10 +43,6 @@ local page = UI.Page {
|
||||
|
||||
return row
|
||||
end,
|
||||
draw = function(self)
|
||||
self:adjustWidth()
|
||||
UI.Grid.draw(self)
|
||||
end,
|
||||
},
|
||||
accelerators = {
|
||||
f = 'filter',
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user