Fix ale#path#Dirname on Windows

This commit is contained in:
w0rp
2021-03-15 21:30:13 +00:00
parent c00852e809
commit bd808dca30
2 changed files with 6 additions and 1 deletions

View File

@@ -116,7 +116,7 @@ function! ale#path#Dirname(path) abort
endif
" For /foo/bar/ we need :h:h to get /foo
if a:path[-1:] is# '/'
if a:path[-1:] is# '/' || (has('win32') && a:path[-1:] is# '\')
return fnamemodify(a:path, ':h:h')
endif