Fix recursive loading, closes #605

This commit is contained in:
Adam Stankiewicz
2020-10-24 23:50:54 +02:00
parent 20b31f5337
commit d73c4d1562
1227 changed files with 3681 additions and 1227 deletions

View File

@@ -1,4 +1,6 @@
let files = filter(globpath(&rtp, 'syntax/ps1xml.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'syntax/ps1xml.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
finish