Skip to content

gh-94521: Copy or cut current line while no selection#145134

Open
znsoooo wants to merge 4 commits intopython:mainfrom
znsoooo:dev-copy-current-line-when-no-select
Open

gh-94521: Copy or cut current line while no selection#145134
znsoooo wants to merge 4 commits intopython:mainfrom
znsoooo:dev-copy-current-line-when-no-select

Conversation

@znsoooo
Copy link
Contributor

@znsoooo znsoooo commented Feb 23, 2026

When the selection is empty, pressing Ctrl-C/Ctrl-X would copy text of zero length, which seems make no sense, and probably cause mistakes (e.g. forgot copy a zero-length text). Therefore, I modified the behavior to copy the current line when there is no selection, which supported by some other editors.

…B.rst

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants