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

Commit

Permalink
Merge pull request #14 from prabirshrestha/fix-geturi-windows
Browse files Browse the repository at this point in the history
fix langserver#util#get_uri() in windows (#13)
  • Loading branch information
tjdevries authored Nov 25, 2016
2 parents 5af6e55 + af7235f commit 0d4af02
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 0d4af02

Please sign in to comment.