summaryrefslogtreecommitdiff
path: root/plugin/ale.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-10-27 09:53:13 +0100
committerw0rp <devw0rp@gmail.com>2017-10-27 11:38:01 +0100
commit73b8181ce65ab8386d0fb900954757d740b600d2 (patch)
treeb5feb796bcd286929adedaa0850cfed1e82d04b3 /plugin/ale.vim
parentd4d939bea9a51f13fb78a5ab1d7367866a180768 (diff)
downloadale-73b8181ce65ab8386d0fb900954757d740b600d2.zip
#1054 - Prevent ALE from adding the after directory to runtimepath too much
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r--plugin/ale.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index 52b3059b..23e8572a 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -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