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

Do not update when a special buffer is selected #166

Merged
merged 1 commit into from
Sep 23, 2016
Merged

Do not update when a special buffer is selected #166

merged 1 commit into from
Sep 23, 2016

Conversation

svanharmelen
Copy link
Contributor

The word “special” in the title, in this case means anything else that a normal buffer (a file). Additionally make sure we reset the alternate window as well so we can keep using that as expected.

For details why this fix is needed, please see this issue ctrlpvim/ctrlp.vim#235 and the comments (mainly the last 5 or so) of this PR ctrlpvim/ctrlp.vim#303

Also please see Xuyuanp/nerdtree-git-plugin#63 as the related code was copied from there and they just merged the same fix as well. So this PR implements that same fix as users have reported the same issue when using this plugin as well.

Please see Xuyuanp/nerdtree-git-plugin#63 including the comments and the references to an issue logged with the `CtrlP` plugin.

This PR implements the same fix as users have reported the same issue when using this plughin as well.
@ryanoasis
Copy link
Owner

Good stuff and thanks for this!

I usually like to test things out even for the most benign changes but this same fix has already been applied elsewhere as you mentioned. 😄

For now I am going to merge and do version update later

@ryanoasis ryanoasis merged commit 0288d01 into ryanoasis:master Sep 23, 2016
@svanharmelen
Copy link
Contributor Author

👍

@ryanoasis ryanoasis modified the milestone: v0.9.0 Sep 23, 2016
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.

2 participants