summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-03-13 15:54:09 +0000
committerw0rp <devw0rp@gmail.com>2019-03-13 15:54:09 +0000
commit67ea571659f31f2ac2253789fabb6b1a30661508 (patch)
tree4d15f2d31ca28dd35de8979742f8dee7b7ebc606 /autoload
parent5f03bae41ca1fc63a9e607bed99c277249e9774e (diff)
downloadale-67ea571659f31f2ac2253789fabb6b1a30661508.zip
Handle pipes in Windows drive letters for URIs
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/path.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/autoload/ale/path.vim b/autoload/ale/path.vim
index ca3afc52..25193ddb 100644
--- a/autoload/ale/path.vim
+++ b/autoload/ale/path.vim
@@ -206,8 +206,9 @@ function! ale#path#FromURI(uri) abort
endif
" If the path is like /C:/foo/bar, it should be C:\foo\bar instead.
- if l:encoded_path =~# '^/[a-zA-Z]:'
+ if l:encoded_path =~# '^/[a-zA-Z][:|]'
let l:encoded_path = substitute(l:encoded_path[1:], '/', '\\', 'g')
+ let l:encoded_path = l:encoded_path[0] . ':' . l:encoded_path[2:]
endif
return ale#uri#Decode(l:encoded_path)