Skip to content
Browse files

Fix code folding. Keeping it simple.

  • Loading branch information...
1 parent c3875ca commit 614bb00e86f989ae2a9183d44223fda082995711 @jimenezrick jimenezrick committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 ftplugin/erlang.vim
View
2 ftplugin/erlang.vim
@@ -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.
Something went wrong with that request. Please try again.