number of rows discrepancy when using less
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.0.15
- OS version: 10.12.6
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window)com.googlecode.iterm2.plist
- Attach a debug log, if possible. Instructions at
- Are you reporting a performance issue or a hang? Please attach a sample. Instructions at https://gitlab.com/gnachman/iterm2/wikis/HowToSample
- Are you reporting a crash? Please attach the crash log. Instructions at https://gitlab.com/gnachman/iterm2/wikis/crash-logs
Detailed steps to reproduce the problem:
- Create Term window 37 rows x 100 columns. "stty -a" reports this and can count on screen.
- Use less to view a file of length > 110 lines and at least some lines longer than 100 columns.
What happened: The top 1 or more lines are off the top of the window and cannot be scrolled into view. The top visible line is second or third line of the file. Numerous commands in less to move it further to the beginning of the file fail to change the situation. Less thinks it is showing the first line, on-ward, but the terminal won't display it. Resizing the window results in no change.
What should have happened: top of the file should be visible at the top of the screen.
Note, this task used to work fine in iterm2. It was the last few months when I noticed it appear. So, one of the last few releases introduced this behavior.