Recursive main discovery fix
Main discovery always ended up starting on the base file when recursing. To fix this we use the file stored in l:file instead of % (current file)
This commit is contained in:
parent
33955aa83a
commit
fc569e994b
@ -637,7 +637,7 @@ function! s:get_main_recurse(...) " {{{1
|
||||
"
|
||||
" Gather candidate files
|
||||
"
|
||||
let l:path = expand('%:p:h')
|
||||
let l:path = fnamemodify(l:file, ':p:h')
|
||||
let l:dirs = l:path
|
||||
while l:path != fnamemodify(l:path, ':h')
|
||||
let l:path = fnamemodify(l:path, ':h')
|
||||
|
Loading…
Reference in New Issue
Block a user