Open fraxen opened 7 years ago
There is a problem with the derivation of RgRootDir() in Windows.
In RgMakePath - the top (root) directory is drive:/, e.g. c:/. I did a dirty little fix and changed RgMakePath to:
fun! s:RgMakePath(dirs, dir) let l:root = has("win32") ? '' : '/' return l:root.join(a:dirs[0:index(a:dirs, a:dir)], '/') endfun
...but this doesn't work for UNC paths, e.g. //computer/share/folder, so there is room for a better solution.
Thanks, I'll look into it when I get some time.
Same issue here.. @fraxen solution worked as long as I have 'shellslash' set. Otherwise we need to account for the slashes in RgRootDir() too.
There is a problem with the derivation of RgRootDir() in Windows.
In RgMakePath - the top (root) directory is drive:/, e.g. c:/. I did a dirty little fix and changed RgMakePath to:
...but this doesn't work for UNC paths, e.g. //computer/share/folder, so there is room for a better solution.