Don't use setline() for left-side matchpair.

This commit is contained in:
Israel Chauca Fuentes
2013-07-13 21:56:40 -04:00
parent 8ab087c95c
commit 14faba1c62
2 changed files with 14 additions and 17 deletions

View File

@@ -296,7 +296,7 @@ function! s:AutoClose() "{{{
while i < len(s:g('matchpairs_list'))
let ld = s:g('left_delims')[i] == '|' ? '<bar>' : s:g('left_delims')[i]
let rd = s:g('right_delims')[i] == '|' ? '<bar>' : s:g('right_delims')[i]
exec 'inoremap <silent> <Plug>delimitMate' . ld . ' ' . ld . '<C-R>=delimitMate#ParenDelim("' . escape(rd, '|') . '")<CR>'
exec 'inoremap <silent> <Plug>delimitMate' . ld . ' <C-R>=delimitMate#ParenDelim("' . escape(rd, '|') . '")<CR>'
exec 'silent! imap <unique> <buffer> '.ld.' <Plug>delimitMate'.ld
let i += 1
endwhile