Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

Commit

Permalink
fix langserver#util#get_uri() in windows (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
prabirshrestha committed Nov 24, 2016
1 parent 3c94634 commit af7235f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion autoload/langserver/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ let s:diagnostic_severity = {
""
" Get a uri from a filename
function! langserver#util#get_uri(name, filename) abort
return 'file://' . a:filename
if has('win32') || has('win64')
return 'file:///' . substitute(a:filename, '\', '/', 'g')
else
return 'file://' . a:filename
endif
endfunction

""
Expand Down

0 comments on commit af7235f

Please sign in to comment.