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

vim: Non-current windows use wrong info after switching between split windows #11

Closed
Lokaltog opened this issue Dec 15, 2012 · 1 comment
Labels

Comments

@Lokaltog
Copy link
Member

For some reason non-current windows use the info of the last window added(?) after switching between split windows. Reproducable by following these steps:

  1. Open vim
  2. Open a random file, e.g. your vimrc
  3. Do a :vsplit
  4. Open another file or a blank file with :enew
  5. Switch to the other split window

The non-current window is now displaying all the information from the original buffer (the first random file), and not the correct information for the buffer that is present in that window.

This bug may be caused by the "randomization" of window numbers when switching between split numbers, and the looping through windows where the w:powerline window variable is set. I've tried connecting the window data with the buffer number (i.e. storing data in w:powerline[bufnr]) but with no luck.

@Lokaltog
Copy link
Member Author

Could be resolved by tagging windows with an unique ID like described here: http://stackoverflow.com/questions/5215163/how-to-get-a-unique-identifier-for-a-window

Lokaltog added a commit that referenced this issue Dec 15, 2012
Each window is now tagged with an UUID and this UUID is used to cache
the window's statusline contents in the Python VimRenderer in order to
avoid translating the statusline contents to and from a vimdict
unnecessarily.

Refs #11.
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