We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c86ef41 commit 21e626cCopy full SHA for 21e626c
1 file changed
plugin/jslsyntax.vim
@@ -21,13 +21,17 @@ function! LoadLibs(path)
21
endif
22
23
let index = 0
24
+ let loaded = 0
25
while index < len(libs)
26
let lib = libs[index]
27
if g:used_javascript_libs =~ lib
28
exe('source '.a:path.'/syntax/'.lib.'.vim')
29
+ let loaded = loaded + 1
30
31
let index = index + 1
32
endwhile
- exe('source '.a:path.'/syntax/postprocess.vim')
33
+ if loaded > 0
34
+ exe('source '.a:path.'/syntax/postprocess.vim')
35
+ endif
36
endfunction
37
0 commit comments