Merge carets after `doc:move-to-{previous,next}-char` (#1462)
This commit is contained in:
parent
0dca16c462
commit
eb5c42a6c9
|
@ -700,6 +700,7 @@ commands["doc:move-to-previous-char"] = function(dv)
|
||||||
dv.doc:move_to_cursor(idx, translate.previous_char)
|
dv.doc:move_to_cursor(idx, translate.previous_char)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
dv.doc:merge_cursors()
|
||||||
end
|
end
|
||||||
|
|
||||||
commands["doc:move-to-next-char"] = function(dv)
|
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)
|
dv.doc:move_to_cursor(idx, translate.next_char)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
dv.doc:merge_cursors()
|
||||||
end
|
end
|
||||||
|
|
||||||
command.add("core.docview", commands)
|
command.add("core.docview", commands)
|
||||||
|
|
Loading…
Reference in New Issue