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

Impossible to select correct text in backlog when output is printed #3431

Closed
trygveaa opened this issue Mar 31, 2021 · 3 comments
Closed

Impossible to select correct text in backlog when output is printed #3431

trygveaa opened this issue Mar 31, 2021 · 3 comments
Labels

Comments

@trygveaa
Copy link
Sponsor Contributor

Describe the bug
If a process is generating output in kitty, and you scroll up and try to select text, what you select will not match where you placed the cursor. Specifically the start of the selection will often be a couple of lines above or below where the cursor were when you started the selection, while the end of the selection will follow the mouse correctly. Double clicking a word to select it will mark multiple lines instead. When a selection is active, a single click will select something else instead of removing the selection.

To Reproduce
Steps to reproduce the behavior:

  1. Run a process that continuously generates output, e.g. for i in {1..100000}; do echo $i; sleep 0.01; done
  2. Scroll up so you see a part of the backlog instead of the new output.
  3. Try to select text.

Expected behavior
Selection should work the same way as when no output is printed.

Screenshots
Since this is very easy to reproduce for me, I don't think a screenshot/screencapture is necessary, but if you can't reproduce, tell me and I'll provide it.

Environment details
OS: Arch Linux

I ran with --config NONE, so --debug-config is just:

kitty 0.19.3 (1e6fe7785a) created by Kovid Goyal
Linux elaine 5.10.23-1-lts #1 SMP Thu, 11 Mar 2021 15:32:34 +0000 x86_64
Arch Linux \r (\l)
LSB_VERSION=1.4
DISTRIB_ID=Arch
DISTRIB_RELEASE=rolling
DISTRIB_DESCRIPTION="Arch Linux"
Running under: X11

Config options different from defaults:
@trygveaa
Copy link
Sponsor Contributor Author

trygveaa commented Apr 1, 2021

Hm, it still doesn't work for me. See the attached video. This is with cb51515 and --config NONE.

kitty-selection-bug-2021-04-02_01.23.11.mp4

Here I first double click to select 5 times, then drag to select 7 times.

@kovidgoyal kovidgoyal reopened this Apr 2, 2021
@trygveaa
Copy link
Sponsor Contributor Author

trygveaa commented Apr 3, 2021

Perfect, thanks!

@zw963
Copy link

zw963 commented Apr 14, 2021

I confirm it works when install kitty-git from arch linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants