mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-06 20:54:31 +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, '\*.^$')
|
||||
\ . '$'
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user