Don't scroll DocView when executing doc:select-all
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user