Skip to content
Browse files

Fix incorrect is_expr.

  • Loading branch information...
1 parent 5d713be commit b7ae7d0ba8c5b4e07170fd9abb7969c2799cf9cc @jiangmiao committed Mar 27, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugin/auto-pairs.vim
View
4 plugin/auto-pairs.vim
@@ -478,7 +478,7 @@ function! AutoPairsTryInit()
let old_cr = info['rhs']
let old_cr = s:ExpandMap(old_cr)
let old_cr = substitute(old_cr, '<SID>', '<SNR>' . info['sid'] . '_', 'g')
- let is_expr = 1
+ let is_expr = info['expr']
let wrapper_name = '<SID>AutoPairsOldCRWrapper73'
endif
else
@@ -491,7 +491,7 @@ function! AutoPairsTryInit()
let is_expr = 0
else
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 wrapper_name = '<SID>AutoPairsOldCRWrapper'
end

0 comments on commit b7ae7d0

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