vim-plugin-minibufexpl icon indicating copy to clipboard operation
vim-plugin-minibufexpl copied to clipboard

Better check for MBE window

Open dezull opened this issue 8 years ago • 0 comments

The original issue: https://github.com/weynhamz/vim-plugin-minibufexpl/issues/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.

dezull avatar Apr 26 '17 09:04 dezull