This commit is contained in:
Adam Harrison
2021-11-14 15:41:28 -05:00
parent 6bdcfc824d
commit 1968d31b7c
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -405,12 +405,14 @@ local commands = {
["doc:set-cursor-word"] = function(x, y, clicks)
local line, col = dv():resolve_screen_position(x, y)
doc():set_selection(line, col, line, col)
command.perform("doc:select-word")
dv().mouse_selecting = { line, col }
end,
["doc:set-cursor-line"] = function(x, y, clicks)
local line, col = dv():resolve_screen_position(x, y)
doc():set_selection(line, col, line, col)
command.perform("doc:select-lines")
dv().mouse_selecting = { line, col }
end,