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

Match by filename does not work on Windows #45

Open
Grueslayer opened this issue Aug 16, 2018 · 0 comments
Open

Match by filename does not work on Windows #45

Grueslayer opened this issue Aug 16, 2018 · 0 comments

Comments

@Grueslayer
Copy link

Because the filename strip is done with the slash "/" as separator, it does not work under windows using backslash "\".

Possible solution for pymatcher.py

  def filename_score(line):
        # get filename via reverse find to improve performance
        shellslash = vim.eval('!exists("+shellslash")?"/":&shellslash?"/":"\\\\"')      
        slashPos = line.rfind(shellslash)    
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

1 participant