Skip to content

Commit c492390

Browse files
committed
Merge pull request #167 from sunaku/issue-159
GH-159: don't use comma as alias for HTML/XML tags
2 parents 772ab95 + 5c6a64f commit c492390

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/surround.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function! s:wrap(string,char,type,removed,special)
164164
elseif newchar ==# ':'
165165
let before = ':'
166166
let after = ''
167-
elseif newchar =~# "[tT\<C-T><,]"
167+
elseif newchar =~# "[tT\<C-T><]"
168168
let dounmapp = 0
169169
let dounmapb = 0
170170
if !maparg(">","c")
@@ -200,7 +200,7 @@ function! s:wrap(string,char,type,removed,special)
200200
let before = '<'.tag.attributes.'>'
201201
let after = '</'.substitute(tag,' .*','','').'>'
202202
endif
203-
if newchar == "\<C-T>" || newchar == ","
203+
if newchar == "\<C-T>"
204204
if type ==# "v" || type ==# "V"
205205
let before .= "\n\t"
206206
endif

0 commit comments

Comments
 (0)