Permalink
Browse files

Fix code folding. Keeping it simple.

  • Loading branch information...
jimenezrick committed Sep 2, 2010
1 parent c3875ca commit 614bb00e86f989ae2a9183d44223fda082995711
Showing with 1 addition and 1 deletion.
  1. +1 −1 ftplugin/erlang.vim
View
@@ -117,7 +117,7 @@ if !exists("*GetErlangFold")
return '<1'
endif
- if line =~ s:ErlangFunBegin && foldlevel(lnum) == 1
+ if line =~ s:ErlangFunBegin && foldlevel(lnum - 1) == 1
if exists("g:erlangFoldSplitFunction") && g:erlangFoldSplitFunction
return '>1'
else

0 comments on commit 614bb00

Please sign in to comment.