Skip to content

Commit 6c2d4b4

Browse files
committed
Handle Windows paths in relative path handling
1 parent 244c691 commit 6c2d4b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/OmniSharp/util.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,11 @@ function! OmniSharp#util#TranslatePathForClient(filename) abort
287287
let common = escape(getcwd(), '\')
288288
let result = ''
289289
while substitute(filename, common . s:dir_separator, '', '') ==# filename
290-
\ && common !=# s:dir_separator
290+
\ && common !=# fnamemodify(common, ':h')
291291
let common = fnamemodify(common, ':h')
292292
let result .= '..' . s:dir_separator
293293
endwhile
294-
if common !=# s:dir_separator
294+
if common !=# fnamemodify(common, ':h')
295295
return result . substitute(filename, common . s:dir_separator, '', '')
296296
endif
297297
let modifiers = ':p'

0 commit comments

Comments
 (0)