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

Better check for MBE window #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dezull
Copy link

@dezull dezull commented Apr 26, 2017

The original issue: #46

This should fix the old issue from fholgado/minibufexpl.vim#119, I don't think it has been resolved yet.

The problem is, at various places this check is performed:

    if bufname('%') != '-MiniBufExplorer-'

to validate the window is indeed MBE's window. Initially that is fine as the bufname matches '-MiniBufExplorer-' exactly.

But after a directory change, it changes to something like:

    /<some-paths...>/.vim_runtime/-MiniBufExplorer-

So this PR performs a better check for MBE's own window.

Copy link

@jasonleakey jasonleakey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, it works! Thanks!

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