mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-03 10:03:47 +08:00
Fix ale#path#Dirname on Windows
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user