Skip to content

Commit 9d3d8c8

Browse files
committed
Always begin relative conversions with an absolute
1 parent f07b791 commit 9d3d8c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

autoload/OmniSharp/util.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ function! OmniSharp#util#TranslatePathForClient(filename) abort
283283
let modifiers = get(g:, 'OmniSharp_filename_modifiers', ':.')
284284

285285
if modifiers ==# 'relative'
286+
let filename = fnamemodify(filename, ':p')
286287
let common = escape(getcwd(), '\')
287288
let result = ''
288289
while substitute(filename, common . s:dir_separator, '', '') ==# filename

0 commit comments

Comments
 (0)