summaryrefslogtreecommitdiffstats
path: root/runtime/plugin/matchparen.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-04 21:49:37 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-04 21:49:37 +0000
commit36fc535cb1353786d7edacfea1cd3ececaf6cf5d (patch)
treed6384287d657b4fb88c1f66176d870986d5a38fe /runtime/plugin/matchparen.vim
parentd0131a8bd20b330a5ded49989ffc8b79e051dd9d (diff)
updated for version 7.0214
Diffstat (limited to 'runtime/plugin/matchparen.vim')
-rw-r--r--runtime/plugin/matchparen.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/plugin/matchparen.vim b/runtime/plugin/matchparen.vim
index 0af2f95f11..c27cf5122d 100644
--- a/runtime/plugin/matchparen.vim
+++ b/runtime/plugin/matchparen.vim
@@ -1,6 +1,6 @@
" Vim plugin for showing matching parens
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2006 Mar 03
+" Last Change: 2006 Mar 04
" Exit quickly when:
" - this plugin was already loaded (or disabled)
@@ -32,6 +32,11 @@ function! s:Highlight_Matching_Pair()
let s:paren_hl_on = 0
endif
+ " Avoid that we remove the popup menu.
+ if pumvisible()
+ return
+ endif
+
" Get the character under the cursor and check if it's in 'matchpairs'.
let c_lnum = line('.')
let c_col = col('.')