Skip to content

Commit

Permalink
does this fix need to be committed
Browse files Browse the repository at this point in the history
  • Loading branch information
docunext committed Oct 14, 2011
1 parent 254d230 commit 0601093
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugin/closetag.vim
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,13 @@ endfunction
" Returns closing tag for most recent unclosed tag, respecting the
" current setting of b:unaryTagsStack for tags that should not be closed
function! GetCloseTag()
if !exists("b:unaryTagsStack") || exists("b:closetag_html_style")
if &filetype == "html" || exists("b:closetag_html_style")
let b:unaryTagsStack="area base br dd dt hr img input link meta param"
else " for xsl and xsl
let b:unaryTagsStack=""
endif
endif
let tag=GetLastOpenTag("b:unaryTagsStack")
if tag == ""
return ""
Expand Down

0 comments on commit 0601093

Please sign in to comment.