wezterm
wezterm copied to clipboard
In `Copy Mode`, `H` and `L` (moving to top/bottom of viewport) doesn't go to correct location.
What Operating System(s) are you seeing this problem on?
Linux X11
WezTerm version
20220524-225254-2725559f
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
See "to reproduce" section.
To Reproduce
Note: When I mention H and L, I am referrring to the corresponding actions: moving to the top of the viewport and bottom of the viewport, respectively.
Problem #1:
- Press
Ctrl+Shift+X- enterCopy Mode. - Press
H. 2.a. This will move the cursor to 2nd line instead of 1st line. 2.b. The result will be the same even if the current line is not at 1.
Pressing L moves the cursor to last line. It works correctly here.
Problem #2:
- Run:
for i in $(seq 1 $((LINES+3)) ); do echo $i; done1.a. I always get below behavior when the the length of scrollback lines is$LINES + 3. If, for some reason, you don't, use a larger value. - Press
H. 2.a. This will move the cursor to 6th line instead of 1st line. - Press
L. 3.a. This will move the cursor to 5th line from bottom instead of the last line.
Both H and L doesn't work.
Configuration
Relevant part is probably:
return {
-- other settings like term, key, etc. are removed.
adjust_window_size_when_changing_font_size = true,
enable_scroll_bar = true,
}
Expected Behavior
No response
Logs
No response
Anything else?
No response