Skip to content

Commit

Permalink
silent the <CR> mapping forcely
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangmiao committed May 15, 2012
1 parent ab206d7 commit ff597df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/auto-pairs.vim
Expand Up @@ -352,7 +352,10 @@ function! AutoPairsForceInit()
endif

if old_cr !~ 'AutoPairsReturn'
execute 'imap <buffer> <CR> '.old_cr.'<SID>AutoPairsReturn'
" generally speaking, <silent> should not be here because every plugin
" has there own silent solution. but for some plugin which wasn't double silent
" mapping, when maparg expand the map will lose the silent info, so <silent> always.
execute 'imap <buffer> <silent> <CR> '.old_cr.'<SID>AutoPairsReturn'
end
endif
call AutoPairsInit()
Expand Down

0 comments on commit ff597df

Please sign in to comment.