-
Notifications
You must be signed in to change notification settings - Fork 90
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
[BUG] Cannot select whole long/multi line, after a search, using double click #609
Comments
I cannot reproduce this, using Terminator with TERM set to xterm-256color. What is your TERM variable set to? |
xterm-256color for 2 and 3, which unfortunately are not with the latest version, I'll check for 1 later or tomorrow, but I suspect the same. |
When you say "Double click on any line before the match", are you using In the latter case, the issue is that when you scroll backwards, each line is individually printed at the top of the screen. If you scroll the terminal backwards one line and print a full line of text in the now-empty first line, then do the same again, most terminals will not treat the two lines as one single line when you try to select one of them. You can work around it by pressing |
Yep, I'm scrolling up (without using |
Assuming you're not using I wonder if this comes down to some "smart" terminal behavior of selecting multiple lines on screen when the terminal wraps one very long line which the application printed into few lines on screen? |
I can reproduce it if I scroll up. At first I was just using -j because the scrolling step wasn't mentioned in your initial report. As to whether it's a less issue or a terminal issue, I think that's somewhat a matter of opinion. One might argue that the terminal should combine lines when they are printed backwards at the top of the screen, but there's also a reasonable argument that the existing terminal behavior is correct. In any case, I don't know that there is anything less can do about this other than perhaps repainting the entire screen on any backwards movement. You could simulate this by using the -h0 option, but I don't think that should be the default because it is quite inefficient. |
Steps to reproduce:
Download this file. longlines.txt (copied from Incorrect horizontal scroll using --incsearch with -S #428) and make sure that lines are wrapped.
Search for 2046 (just an example)
Double click on any line after the match - whole line will be selected.
Double click on any line before the match - only one line of the multi-line will be selected.
I've tested on:
I'm a bit worried if this is an less issue, because the workarounds I found are:
The text was updated successfully, but these errors were encountered: