summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-04-21 01:25:33 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-04-21 01:25:33 -0500
commit6f3910c666ddd92d09cc5551f776a82f6c0d4e63 (patch)
tree8f14ac47be68eaab52d23136688dcadc79164c50
parentbb6a0fef16875798ac6242ea66b58383368ce57a (diff)
downloadvim-foldtext-6f3910c666ddd92d09cc5551f776a82f6c0d4e63.tar.gz
vim-foldtext-6f3910c666ddd92d09cc5551f776a82f6c0d4e63.zip
skip blank lines before argument handling
-rw-r--r--vimrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vimrc b/vimrc
index 3ddd2c0..fbb89dd 100644
--- a/vimrc
+++ b/vimrc
@@ -217,8 +217,8 @@ function Perl_foldtext()
while linenum <= v:foldend
let linenum += 1
let next_line = getline(linenum)
- " skip the opening brace and comment lines
- if next_line =~ '\s*{\s*' || next_line =~ '^\s*#'
+ " skip the opening brace and comment lines and blank lines
+ if next_line =~ '\s*{\s*' || next_line =~ '^\s*#' || next_line == ''
continue
endif