-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clicking past the end of a line triggers yank #2699
Comments
This may be windows-specific. I can't reproduce on wezterm on linux |
I'll try it on my linux machine later to confim. |
|
The behavior is a bit hard to describe; here's a quick visualization of what happens when clicking different areas:
Edit: actually.. it looks like this is not a windows issue, but an issue with |
I haven't tested it out yet but I bet it's this block: helix/helix-term/src/ui/editor.rs Lines 1086 to 1104 in e053277
|
Summary
When clicking past the end of a line, helix yanks the text as if I clicked and dragged.
This also seems to happen when clicking other positions in the terminal, such as the gutter (although in that case the cursor position remains unchanged). I suspect that this happens whenever a click doesn't land on a character from the document.
Reproduction Steps
yanked main selection to system clipboard
Helix log
Nothing helpful is logged
Platform
Windows
Terminal Emulator
wezterm, cmd, powershell
Helix Version
helix 22.05 (built from master
4a27e2d9
)The text was updated successfully, but these errors were encountered: