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 244c691 commit 6c2d4b4Copy full SHA for 6c2d4b4
autoload/OmniSharp/util.vim
@@ -287,11 +287,11 @@ function! OmniSharp#util#TranslatePathForClient(filename) abort
287
let common = escape(getcwd(), '\')
288
let result = ''
289
while substitute(filename, common . s:dir_separator, '', '') ==# filename
290
- \ && common !=# s:dir_separator
+ \ && common !=# fnamemodify(common, ':h')
291
let common = fnamemodify(common, ':h')
292
let result .= '..' . s:dir_separator
293
endwhile
294
- if common !=# s:dir_separator
+ if common !=# fnamemodify(common, ':h')
295
return result . substitute(filename, common . s:dir_separator, '', '')
296
endif
297
let modifiers = ':p'
0 commit comments