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

Filebeagle hangs Vim when going above root directory #43

Open
genotrance opened this issue Feb 17, 2017 · 1 comment
Open

Filebeagle hangs Vim when going above root directory #43

genotrance opened this issue Feb 17, 2017 · 1 comment

Comments

@genotrance
Copy link

Running Vim 8.0 on MSYS64 on Windows 10 in CMD.exe

When I start Vim and press "-" repeatedly, it goes up to the MSYS home directory (C:\Msys64\home) after which it hangs.

Likewise, if I start Vim on a file outside the MSYS home directory (C:\xyz\abc\file.123), pressing - repeatedly goes up to C: after which it hangs again and the Vim window has to be killed.

Not certain if this is a Vim issue or Filebeagle but hope you can find out.

@betheev
Copy link

betheev commented Oct 1, 2019

The problem is caused by the lines:
let path_str = glob(l:current_dir.s:sep.'.[^.]'.a:glob_pattern)."\n".glob(l:current_dir.s:sep.a:glob_pattern)
and
let path_str = glob(l:current_dir.s:sep.a:glob_pattern)

The separator s:sep is not needed since it was already appended in the line:
let self.focus_dir = fnamemodify(a:focus_dir, ":p")

Simply replace those lines with:
let path_str = glob(l:current_dir.'.[^.]'.a:glob_pattern)."\n".glob(l:current_dir.a:glob_pattern)
and
let path_str = glob(l:current_dir.a:glob_pattern)
respectively.

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

No branches or pull requests

2 participants