junegunn / fzf.vim

fzf :heart: vim
MIT License
9.55k stars 583 forks source link

On windows, :History command can't open the file with lowercase letter drive path. #1424

Closed lilx2018 closed 1 year ago

lilx2018 commented 1 year ago

When I use :History command to open a file with lowercase letter drive on its path, neovim open with empty content, maybe when try to open, neovim use a mistake filename as curruentdir + fullpath filename like "C:\currentdir\c:\anotherdir\foo.txt", but when I use command :echo expand('%'), it give me the right filename c:\anotherdir\foo.txt.

Here is a image maybe can help: image

lilx2018 commented 1 year ago

I run :echo v:oldfiles, it give me result ['G:\workspace\neovim\build\g:\nvim-win64\share\nvim\runtime\doc\options.txt', ... , 'C:\Users\Administrator\AppData\Local[packer]'], the first item is not true so it can't be open.

Maybe this is a bug of neovim, and maybe fzf.vim can deal with by some special handling.

lilx2018 commented 1 year ago

Yet I think the best way is to fix Neovim to avoid this issue, and to do a special handling is not the "right way" of doing things, so I decide to close this issue.