aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-08-04 16:49:10 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-08-04 16:49:10 +0200
commit05712d4b20fbc260134b9e5b6f816cfee90c1ab2 (patch)
tree2437f826fe2f7b432822b94294a33d676e6ee00b
parent96be8a2c4d63faadb97c346abb336511a60ac89a (diff)
downloadrneovim-05712d4b20fbc260134b9e5b6f816cfee90c1ab2.tar.gz
rneovim-05712d4b20fbc260134b9e5b6f816cfee90c1ab2.tar.bz2
rneovim-05712d4b20fbc260134b9e5b6f816cfee90c1ab2.zip
runtime/matchit.vim: workaround broken 'packpath'
fix #10680
-rw-r--r--runtime/plugin/matchit.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/plugin/matchit.vim b/runtime/plugin/matchit.vim
index ef698631b9..63be644062 100644
--- a/runtime/plugin/matchit.vim
+++ b/runtime/plugin/matchit.vim
@@ -1,2 +1,4 @@
" Nvim: load the matchit plugin by default.
-packadd matchit
+if stridx(&packpath, $VIMRUNTIME) >= 0
+ packadd matchit
+endif