Don't scroll DocView when executing `doc:select-all`

This commit is contained in:
Guldoman 2022-02-11 06:00:38 +01:00
parent dc5888bc07
commit 59ba759167
No known key found for this signature in database
GPG Key ID: C08A498EC7F1AFDD
1 changed files with 3 additions and 0 deletions

View File

@ -278,6 +278,9 @@ local commands = {
["doc:select-all"] = function() ["doc:select-all"] = function()
doc():set_selection(1, 1, math.huge, math.huge) doc():set_selection(1, 1, math.huge, math.huge)
-- avoid triggering DocView:scroll_to_make_visible
dv().last_line = 1
dv().last_col = 1
end, end,
["doc:select-lines"] = function() ["doc:select-lines"] = function()