Skip to content
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

right clicking doesn't select the right character #10066

Closed
diegostafa opened this issue Mar 31, 2024 · 0 comments · Fixed by #10067
Closed

right clicking doesn't select the right character #10066

diegostafa opened this issue Mar 31, 2024 · 0 comments · Fixed by #10067
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug

Comments

@diegostafa
Copy link
Contributor

Summary

trying to select a character with a right click actually selects a character in the wrong position and not the one under the mouse cursor

looking at the source it seems that when right clicking the event handler is using gutter coordinates instead of document coordinates

Reproduction Steps

I tried this:

  1. open any file
  2. right click with the mouse to select a character

I expected this to happen:
the character under the mouse cursor is selected

Instead, this happened:
a character few cells away is selected

Helix log

~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines

Platform

Linux

Terminal Emulator

Alacritty, Xterm

Installation Method

pacman

Helix Version

helix 23.10

@diegostafa diegostafa added the C-bug Category: This is a bug label Mar 31, 2024
@kirawi kirawi added the A-helix-term Area: Helix term improvements label Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants