Permalink
Browse files

Fixed bug for all comment files

  • Loading branch information...
1 parent 108f001 commit b13af8eb0656e6dd6f80ee3a8ed863b9e0b27076 @fotanus committed Feb 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 fold_license.vim
View
@@ -40,7 +40,7 @@ function! GetCommentLine(line_start)
if s:comment_start != 0
let s:current_line = s:comment_start
let s:is_comment = 1
- while s:is_comment != -1
+ while (s:is_comment != -1) && (s:current_line != line("$"))
let s:current_line = s:current_line + 1
exec "call cursor(".(s:current_line).",1)"
exec "let s:is_comment = match(getline('.'),'^\s*".a:line_start ."')"

0 comments on commit b13af8e

Please sign in to comment.