Permalink
Browse files

does this fix need to be committed

  • Loading branch information...
1 parent 254d230 commit 060109359b81b53dfad7206e23f86007d895996f docunext committed Oct 14, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 plugin/closetag.vim
View
@@ -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 ""

0 comments on commit 0601093

Please sign in to comment.