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

Resizing terminal window while in a pager confuses the next pager #303

Open
georgebrock opened this issue Jun 17, 2017 · 0 comments
Open
Labels
Milestone

Comments

@georgebrock
Copy link
Collaborator

  1. Open gitsh in a small terminal emulator window
  2. Run a command that starts a pager
  3. Increase the window size
  4. Close the pager
  5. Run a command that starts a pager
  6. The new pager will be initialised at the original smaller window size

This is similar to the issue discussed in #144 (comment) and fixed in #221.

We might be able to fix this by updating environment variables on SIGWINCH. The less(1) manual page says this about the COLUMNS environment variable:

Sets the number of columns on the screen. Takes precedence over the number of columns specified by the TERM variable. (But if you have a windowing system which supports TIOCGWINSZ or WIOCGETD, the window system's idea of the screen size takes precedence over the LINES and COLUMNS environment variables.)

@georgebrock georgebrock added this to the v1.0 milestone Feb 3, 2019
@georgebrock georgebrock modified the milestones: v1.0, v0.15 Mar 3, 2019
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

1 participant