Make jumping back optional.

This commit is contained in:
Israel Chauca Fuentes
2010-12-06 22:08:59 -06:00
parent d0fc1456b7
commit 4157dc8a88
2 changed files with 5 additions and 5 deletions

View File

@@ -258,7 +258,7 @@ endfunction "}}}
function! s:Finish()
if exists('g:delimitMate_loaded')
return delimitMate#Finish()
return delimitMate#Finish(1)
endif
return ''
endfunction
@@ -349,7 +349,7 @@ function! s:ExtraMappings() "{{{
endfor
" Avoid ambiguous mappings:
for map in ['LeftMouse', 'RightMouse']
exec 'inoremap <silent> <Plug>delimitMateM'.map.' <C-R>=delimitMate#Finish()<CR><'.map.'>'
exec 'inoremap <silent> <Plug>delimitMateM'.map.' <C-R>=delimitMate#Finish(1)<CR><'.map.'>'
if !hasmapto('<Plug>delimitMate'.map, 'i')
exec 'silent! imap <unique> <buffer> <'.map.'> <Plug>delimitMateM'.map
endif