Merge carets after `doc:move-to-{previous,next}-char` (#1462)

This commit is contained in:
Guldoman 2023-04-14 23:49:26 +02:00 committed by GitHub
parent 3f8dedd845
commit a6d1fe720f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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)