summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-04-22 01:08:05 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-04-22 01:08:05 -0500
commitfd110157bc351e69494bf66c6a38bea921ebb5da (patch)
treece183c68454335d0c75df108cbf277ada68fc950
parent261daf83f67134a0fd002f0dc2e99ce6717dc3b9 (diff)
downloadvim-foldtext-fd110157bc351e69494bf66c6a38bea921ebb5da.tar.gz
vim-foldtext-fd110157bc351e69494bf66c6a38bea921ebb5da.zip
don't increment the counter for labeled items
-rw-r--r--vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 3bc4c98..2f296b9 100644
--- a/vimrc
+++ b/vimrc
@@ -294,7 +294,7 @@ function Latex_foldtext() " {{{
let item_name += [0]
endif
else
- if type(item_name[item_depth]) == type(0)
+ if type(item_name[item_depth]) == type(0) && label == ''
let item_name[item_depth] += 1
endif
endif