#1054 - Prevent ALE from adding the after directory to runtimepath too much

This commit is contained in:
w0rp 2017-10-27 09:53:13 +01:00
parent d4d939bea9
commit 73b8181ce6
1 changed files with 2 additions and 0 deletions

View File

@ -36,7 +36,9 @@ endif
let g:ale_emit_conflict_warnings = get(g:, 'ale_emit_conflict_warnings', 1)
if g:ale_emit_conflict_warnings
\&& match(&runtimepath, '[/\\]ale[/\\]after') < 0
" Add the after directory to the runtimepath
" This is only done if the after directory isn't already in runtimepath
let &runtimepath .= ',' . expand('<sfile>:p:h:h') . '/after'
endif