Skip to content

Comments

Fix regression in CopyLine, CutLine, DeleteLine for last line#3519

Merged
JoeKar merged 1 commit intomicro-editor:masterfrom
dmaluka:line-actions-last-line-regression-fix
Oct 24, 2024
Merged

Fix regression in CopyLine, CutLine, DeleteLine for last line#3519
JoeKar merged 1 commit intomicro-editor:masterfrom
dmaluka:line-actions-last-line-regression-fix

Conversation

@dmaluka
Copy link
Collaborator

@dmaluka dmaluka commented Oct 24, 2024

Fix regression introduced in commit fdacb28 ("CopyLine, CutLine, DeleteLine: respect selection"): when CopyLine, CutLine or DeleteLine is done in the last line of the buffer and this line is not empty, this line gets selected but does not get copied/cut/deleted (and worse, it remains selected).

Reported by @niten94 in #3335 (comment)

Fix regression introduced in commit fdacb28 ("CopyLine, CutLine,
DeleteLine: respect selection"): when CopyLine, CutLine or DeleteLine is
done in the last line of the buffer and this line is not empty, this
line gets selected but does not get copied/cut/deleted (and worse, it
remains selected).
@JoeKar JoeKar merged commit 1ead9ce into micro-editor:master Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants