diff options
| author | Guldoman <giulio.lettieri@gmail.com> | 2023-04-14 23:49:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-14 17:49:26 -0400 |
| commit | a6d1fe720f06dae2f3ff93c222ccca1be54fd4a0 (patch) | |
| tree | b5306229d762f9a58f822628678f362244722bf8 /data/core/commands | |
| parent | 3f8dedd845539551a73a11ae7c641f9a941712f2 (diff) | |
| download | lite-xl-a6d1fe720f06dae2f3ff93c222ccca1be54fd4a0.tar.gz lite-xl-a6d1fe720f06dae2f3ff93c222ccca1be54fd4a0.zip | |
Merge carets after `doc:move-to-{previous,next}-char` (#1462)
Diffstat (limited to 'data/core/commands')
| -rw-r--r-- | data/core/commands/doc.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/data/core/commands/doc.lua b/data/core/commands/doc.lua index d9803bce..0530f6e9 100644 --- a/data/core/commands/doc.lua +++ b/data/core/commands/doc.lua @@ -700,6 +700,7 @@ commands["doc:move-to-previous-char"] = function(dv) dv.doc:move_to_cursor(idx, translate.previous_char) end end + dv.doc:merge_cursors() end commands["doc:move-to-next-char"] = function(dv) @@ -710,6 +711,7 @@ commands["doc:move-to-next-char"] = function(dv) dv.doc:move_to_cursor(idx, translate.next_char) end end + dv.doc:merge_cursors() end command.add("core.docview", commands) |
