* Fix incorrect check in doc:raw_remove

Restore caret position on command doc:cut

* merge cursors and fix new line in clipboard

* add new line to the last copied line
This commit is contained in:
vqn authored and takase1121 committed 2023-08-19 12:41:57 +08:00
1 parent d497402c30
commit f60228f610
2 files changed
+6 -4

No files matched your search

+1 -1
View File
@@ -453,7 +453,7 @@ function Doc:raw_remove(line1, col1, line2, col2, undo_stack, time)
end
end
if cline2 > line1 or (cline2 == line2 and ccol2 > col1) then
if cline2 > line1 or (cline2 == line1 and ccol2 > col1) then
if cline2 > line2 then
l2 = l2 - line_removal
else