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

Handle (i.e. do not increase) zero-width windows. #94

Merged
merged 1 commit into from Jun 18, 2014

Conversation

inkarkat
Copy link
Contributor

The :windo command enters each window, which causes the height to increase to at least 1 (to make the current line visible). (The so-called "Rolodex mode" uses stacks of 0-width windows, with only one maximized.)
To avoid changes to the window layout, it (and the current window number) need to be saved and restored after the :windo. This affects the iteration in s:check_special_tabpage() (during :SessionSave) as well as the commands added to the session (on :SessionOpen restoring a single tab page).

The :windo command enters each window, which causes the height to increase to at least 1 (to make the current line visible). (The so-called "Rolodex mode" uses stacks of 0-width windows, with only one maximized.)
To avoid changes to the window layout, it (and the current window number) need to be saved and restored after the :windo. This affects the iteration in s:check_special_tabpage() (during :SessionSave) as well as the commands added to the session (on :SessionOpen restoring a single tab page).
@xolox xolox merged commit c8f8417 into xolox:master Jun 18, 2014
@xolox
Copy link
Owner

xolox commented Jun 18, 2014

Thanks!

@inkarkat inkarkat deleted the handle-zero-height-windows branch June 19, 2014 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants