Update map expr checking.
This commit is contained in:
parent
24ffa783f0
commit
5d713be821
@ -491,8 +491,8 @@ function! AutoPairsTryInit()
|
|||||||
let is_expr = 0
|
let is_expr = 0
|
||||||
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('
|
||||||
let wrapper_name = '<SID>AutoPairsOldCRWrapper'
|
let wrapper_name = '<SID>AutoPairsOldCRWrapper'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user