summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2017-10-18 00:10:11 -0400
committerJesse Luehrs <doy@tozt.net>2017-10-18 00:10:11 -0400
commitfcfc09c4ce65a9a3dce6285e04c326a608e4c3bf (patch)
tree5620163dae73d7a615a4d10c0d3a87b745021e57
parentdd25d369d3d06170e4987ba46b170df1debc7c4c (diff)
downloadvim-foldtext-master.tar.gz
vim-foldtext-master.zip
don't load the plugin more than onceHEADmaster
-rw-r--r--plugin/foldtext.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/foldtext.vim b/plugin/foldtext.vim
index a8f31b7..2a9c73e 100644
--- a/plugin/foldtext.vim
+++ b/plugin/foldtext.vim
@@ -1,3 +1,7 @@
+if exists('g:loaded_foldtext')
+ finish
+endif
+let g:loaded_foldtext = 1
" Base {{{
function Foldtext_base(...)
" use the argument for display if possible, otherwise the current line {{{