Added command doc:select-none, added binding to escape

This commit is contained in:
rxi committed 2020-05-01 19:25:17 +01:00
1 parent 885ed5f860
commit 4ca35fe056
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -135,6 +135,11 @@ local commands = {
doc():set_selection(1, 1, math.huge, math.huge)
end,
["doc:select-none"] = function()
local line, col = doc():get_selection()
doc():set_selection(line, col)
end,
["doc:select-lines"] = function()
local line1, _, line2, _, swap = doc():get_selection(true)
append_line_if_last_line(line2)