From d3ffebab74636c09f3bced20f441ff85df1b18f2 Mon Sep 17 00:00:00 2001 From: Israel Chauca Fuentes Date: Sun, 15 Apr 2012 01:34:56 -0400 Subject: [PATCH] Replace for loop with map(). Should finish with #77. --- autoload/delimitMate.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/autoload/delimitMate.vim b/autoload/delimitMate.vim index 59b5f31..60d630e 100644 --- a/autoload/delimitMate.vim +++ b/autoload/delimitMate.vim @@ -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 "\" . extra endfunction " }}} delimitMate#BS()