mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-06 12:44:27 +08:00
Replace for loop with map(). Should finish with #77.
This commit is contained in:
@@ -459,9 +459,8 @@ function! delimitMate#BS() " {{{
|
|||||||
\ . escape(b:_l_delimitMate_eol_marker, '\*.^$')
|
\ . escape(b:_l_delimitMate_eol_marker, '\*.^$')
|
||||||
\ . '$'
|
\ . '$'
|
||||||
if buffer_tail =~ tail_re && search('\%#'.tail_re, 'cWn')
|
if buffer_tail =~ tail_re && search('\%#'.tail_re, 'cWn')
|
||||||
for c in range(len(split(b:_l_delimitMate_eol_marker, '\zs')))
|
let extra .= join(map(split(b:_l_delimitMate_eol_marker, '\zs'),
|
||||||
let extra .= delimitMate#Del()
|
\ 'delimitMate#Del()'), '')
|
||||||
endfor
|
|
||||||
endif
|
endif
|
||||||
return "\<BS>" . extra
|
return "\<BS>" . extra
|
||||||
endfunction " }}} delimitMate#BS()
|
endfunction " }}} delimitMate#BS()
|
||||||
|
|||||||
Reference in New Issue
Block a user