* 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
2023-08-19 12:41:57 +08:00
committed by takase1121
parent d497402c30
commit f60228f610
2 changed files with 6 additions and 4 deletions
+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