If change width of window, can scroll to hide currently visible text
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: Build 3.3.11
- OS version: macOS 10.13.6
(I believe this doesn't depend on my detailed configuration; let me know if you think otherwise.)
Detailed steps to reproduce the problem:
- Open terminal window to a command line
- Echo a bunch of text with long lines (80-200 characters should do it), so that there are several windows-worth of text in the buffer
- Drag the scrollbar up so that you aren't looking at the very bottom line
- Make the window width narrower; this makes the window contents taller.
What happened: When the changed width makes the window contents taller, the scrolling should be maintained so that (most of) the visible text stays visible
What should have happened: iTerm2 seems to keep the visible window showing a fixed number of lines from the top of the window content, so the visible text moves down and disappears.
In general, if you aren't scrolled to the very bottom of a window, and you adjust its width so that the text wrapping changes, then the window contents will move up (if making the window wider) or down (if making the window narrower), scrolling away from the visible (and presumably interesting) text. The scrolling should instead adjust so that some fixed point in the window (the middle line?) stays where it is.
This is a problem, because I'll often scroll back to find some event in the buffer, and then resize the window so as to show more of the event. Bingo: the event zips up or down and out of view, and I have to go looking for it again.