Skip to content
Browse files

Fix #46, Incompatible CR mapping with supertab.

  • Loading branch information...
1 parent 37076cb commit a5f9ac7f4303afaebc380ffb1bd0ed2ff3ab9df0 @jiangmiao committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/auto-pairs.vim
View
2 plugin/auto-pairs.vim
@@ -492,7 +492,7 @@ function! AutoPairsTryInit()
else
let old_cr = s:ExpandMap(old_cr)
" old_cr contain (, I guess the old cr is in expr mode
- let is_expr = old_cr =~ '\V('
+ let is_expr = old_cr =~ '\V(' && toupper(old_cr) !~ '\V<C-R>'
let wrapper_name = '<SID>AutoPairsOldCRWrapper'
end
end

0 comments on commit a5f9ac7

Please sign in to comment.
Something went wrong with that request. Please try again.