autoload/lsp/util.vim | 6 ++---- diff --git a/autoload/lsp/util.vim b/autoload/lsp/util.vim index 2b157de1edea4de98ad9cfb6201e07d06e9e8d3a..a02f6556b176663974363f95893ca0482937dc79 100644 --- a/autoload/lsp/util.vim +++ b/autoload/lsp/util.vim @@ -117,15 +117,13 @@ if resolvedUris->has_key(fname_full) return resolvedUris[fname_full] endif - var uri: string + var uri: string = fname_full if has("win32unix") # We're in Cygwin, convert POSIX style paths to Windows style. # The substitution is to remove the '^@' escape character from the end of # line. - uri = system($'cygpath -m {fname_full}')->substitute('^\(\p*\).*$', '\=submatch(1)', "") - else - uri = fname_full + uri = system($'cygpath -m {uri}')->substitute('^\(\p*\).*$', '\=submatch(1)', "") endif var on_windows: bool = false