Skip to content

Empty MBE window when changing working directory #46

@dezull

Description

@dezull

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

I may have found the reason, where 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-

We can use:

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

unless a file with that name exists in that directory, do you think that is ok?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions