GH-159: don't use comma as alias for HTML/XML tags

This change allows us to surround text with commas.
This commit is contained in:
Suraj N. Kurapati 2015-04-30 10:36:59 -07:00
parent 772ab9587b
commit 5c6a64f333

View File

@ -164,7 +164,7 @@ function! s:wrap(string,char,type,removed,special)
elseif newchar ==# ':'
let before = ':'
let after = ''
elseif newchar =~# "[tT\<C-T><,]"
elseif newchar =~# "[tT\<C-T><]"
let dounmapp = 0
let dounmapb = 0
if !maparg(">","c")
@ -200,7 +200,7 @@ function! s:wrap(string,char,type,removed,special)
let before = '<'.tag.attributes.'>'
let after = '</'.substitute(tag,' .*','','').'>'
endif
if newchar == "\<C-T>" || newchar == ","
if newchar == "\<C-T>"
if type ==# "v" || type ==# "V"
let before .= "\n\t"
endif