mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-14 00:48:57 +08:00
Fix ale#path#Dirname on Windows
This commit is contained in:
2 files changed
+6
-1
No files matched your search
@@ -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