Replace for loop with map(). Should finish with #77.

This commit is contained in:
Israel Chauca Fuentes
2012-04-15 01:34:56 -04:00
parent ece6c39a65
commit d3ffebab74

View File

@@ -459,9 +459,8 @@ function! delimitMate#BS() " {{{
\ . escape(b:_l_delimitMate_eol_marker, '\*.^$')
\ . '$'
if buffer_tail =~ tail_re && search('\%#'.tail_re, 'cWn')
for c in range(len(split(b:_l_delimitMate_eol_marker, '\zs')))
let extra .= delimitMate#Del()
endfor
let extra .= join(map(split(b:_l_delimitMate_eol_marker, '\zs'),
\ 'delimitMate#Del()'), '')
endif
return "\<BS>" . extra
endfunction " }}} delimitMate#BS()