Fix #46, Incompatible CR mapping with supertab.
This commit is contained in:
parent
37076cb15f
commit
a5f9ac7f43
@ -492,7 +492,7 @@ function! AutoPairsTryInit()
|
|||||||
else
|
else
|
||||||
let old_cr = s:ExpandMap(old_cr)
|
let old_cr = s:ExpandMap(old_cr)
|
||||||
" old_cr contain (, I guess the old cr is in expr mode
|
" 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'
|
let wrapper_name = '<SID>AutoPairsOldCRWrapper'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user