Windows: handle UNC paths more gracefully

References #257
This commit is contained in:
Marco Hinz 2018-07-04 21:08:59 +02:00
parent a1551dbae3
commit a8b50dee5a
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -13,6 +13,9 @@ function! sy#start() abort
endif endif
let sy_path = resolve(expand('%:p')) let sy_path = resolve(expand('%:p'))
if has('win32')
let sy_path = substitute(sy_path, '\v^(\w):\\\\', '\1:\\', '')
endif
if s:skip(sy_path) if s:skip(sy_path)
call sy#verbose('Skip file: '. sy_path) call sy#verbose('Skip file: '. sy_path)