Skip to content

Commit 9c79e93

Browse files
author
skywind3000
committed
fix g:asyncrun_rooter detection
1 parent c572812 commit 9c79e93

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

plugin/script_load.vim

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,14 @@ function! s:root_locator()
119119
let test = keys(g:asyncrun_rooter)
120120
call sort(test)
121121
for name in test
122-
let root = call(g:asyncrun_rooter, [])
122+
let root = call(g:asyncrun_rooter[name], [])
123+
if root != ''
124+
return root
125+
endif
126+
endfor
127+
elseif type(g:asyncrun_rooter) == type([])
128+
for index in range(len(g:asyncrun_rooter))
129+
let root = call(g:asyncrun_rooter[index], [])
123130
if root != ''
124131
return root
125132
endif

0 commit comments

Comments
 (0)