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

When pane is un-shrunk, the view may have changed #29

Closed
mattboehm opened this issue Oct 23, 2013 · 1 comment
Closed

When pane is un-shrunk, the view may have changed #29

mattboehm opened this issue Oct 23, 2013 · 1 comment
Assignees
Labels

Comments

@mattboehm
Copy link
Owner

Open 3 files, go to rightmost file, move cursor to middle line (preferably a long line), call :Accordion 2, move left twice, move right twice. Line with cursor is now on the top.

This happens because when lines are shrunk, they become 1 column wide, so the entire window is only showing part of the cursor line, which fills the viewport from top to bottom.

There might be some way to use winsaveview() and winrestview() to fix this.

@ghost ghost assigned mattboehm Nov 19, 2013
@mattboehm
Copy link
Owner Author

I took a first stab at this and it did not work as expected. This is probably just an issue of me saving or restoring the views at the wrong time as I've confirmed that restoring the view should shift it over.

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