Refresh AltStatusBar once a minute, if there are changes

This commit is contained in:
zwim
2021-01-29 18:39:08 +01:00
committed by poire-z
parent 49e2d91afb
commit 3118d0dba0
4 changed files with 150 additions and 25 deletions

View File

@@ -1331,6 +1331,9 @@ end
-- no-op that will be wrapped by setupCallCache
function CreDocument:resetCallCache() end
-- no-op that will be wrapped by setupCallCache
function CreDocument:resetBufferCache() end
-- Optimise usage of some of the above methods by caching their results,
-- either globally, or per page/pos for those whose result may depend on
-- current page number or y-position.
@@ -1562,6 +1565,7 @@ function CreDocument:setupCallCache()
elseif name == "getWordFromPosition" then add_buffer_trash = true
elseif name == "getTextFromPositions" then add_buffer_trash = true
elseif name == "findText" then add_buffer_trash = true
elseif name == "resetBufferCache" then add_buffer_trash = true
-- These may change page/pos
elseif name == "gotoPage" then set_tag = "page" ; set_arg = 2 ; set_arg2 = 3