diff runtime/plugin/matchparen.vim @ 711:1babf94e0b24

updated for version 7.0214
author vimboss
date Sat, 04 Mar 2006 21:49:37 +0000
parents ef3b59af4207
children 8b0484fd9119
line wrap: on
line diff
--- 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('.')