We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c80e82 commit 1c2095dCopy full SHA for 1c2095d
autoload/OmniSharp/util.vim
@@ -283,10 +283,13 @@ function! OmniSharp#util#TranslatePathForClient(filename) abort
283
let common = escape(getcwd(), '\')
284
let result = ''
285
while substitute(filename, common . s:dir_separator, '', '') ==# filename
286
+ \ && common !=# s:dir_separator
287
let common = fnamemodify(common, ':h')
288
let result .= '..' . s:dir_separator
289
endwhile
- return result . substitute(filename, common . s:dir_separator, '', '')
290
+ if common !=# s:dir_separator
291
+ return result . substitute(filename, common . s:dir_separator, '', '')
292
+ endif
293
endif
294
295
return fnamemodify(filename, modifiers)
0 commit comments