a83238b
To: vim-dev@vim.org
a83238b
Subject: patch 7.1.082
a83238b
Fcc: outbox
a83238b
From: Bram Moolenaar <Bram@moolenaar.net>
a83238b
Mime-Version: 1.0
a83238b
Content-Type: text/plain; charset=ISO-8859-1
a83238b
Content-Transfer-Encoding: 8bit
a83238b
------------
a83238b
a83238b
Patch 7.1.082
a83238b
Problem:    After a ":split" the matchparen highlighting isn't there.
a83238b
Solution:   Install a WinEnter autocommand.  Also fixes that after
a83238b
	    ":NoMatchParen" only the current window is updated. (Martin Toft)
a83238b
Files:	    runtime/doc/pi_paren.txt, runtime/plugin/matchparen.vim
a83238b
a83238b
a83238b
*** ../vim-7.1.081/runtime/doc/pi_paren.txt	Sat May 12 16:23:41 2007
a83238b
--- runtime/doc/pi_paren.txt	Sat Aug 18 15:08:32 2007
a83238b
***************
a83238b
*** 12,19 ****
a83238b
  You can avoid loading this plugin by setting the "loaded_matchparen" variable: >
a83238b
  	:let loaded_matchparen = 1
a83238b
  
a83238b
! The plugin installs CursorMoved autocommands to redefine the match
a83238b
! highlighting.
a83238b
  
a83238b
  To disable the plugin after it was loaded use this command: >
a83238b
  
a83238b
--- 12,19 ----
a83238b
  You can avoid loading this plugin by setting the "loaded_matchparen" variable: >
a83238b
  	:let loaded_matchparen = 1
a83238b
  
a83238b
! The plugin installs CursorMoved, CursorMovedI and WinEnter autocommands to
a83238b
! redefine the match highlighting.
a83238b
  
a83238b
  To disable the plugin after it was loaded use this command: >
a83238b
  
a83238b
*** ../vim-7.1.081/runtime/plugin/matchparen.vim	Thu Aug  2 23:00:06 2007
a83238b
--- runtime/plugin/matchparen.vim	Sat Aug 18 15:08:32 2007
a83238b
***************
a83238b
*** 1,6 ****
a83238b
  " Vim plugin for showing matching parens
a83238b
  " Maintainer:  Bram Moolenaar <Bram@vim.org>
a83238b
! " Last Change: 2007 Jul 30
a83238b
  
a83238b
  " Exit quickly when:
a83238b
  " - this plugin was already loaded (or disabled)
a83238b
--- 1,6 ----
a83238b
  " Vim plugin for showing matching parens
a83238b
  " Maintainer:  Bram Moolenaar <Bram@vim.org>
a83238b
! " Last Change: 2007 Aug 8
a83238b
  
a83238b
  " Exit quickly when:
a83238b
  " - this plugin was already loaded (or disabled)
a83238b
***************
a83238b
*** 13,19 ****
a83238b
  
a83238b
  augroup matchparen
a83238b
    " Replace all matchparen autocommands
a83238b
!   autocmd! CursorMoved,CursorMovedI * call s:Highlight_Matching_Pair()
a83238b
  augroup END
a83238b
  
a83238b
  " Skip the rest if it was already done.
a83238b
--- 13,19 ----
a83238b
  
a83238b
  augroup matchparen
a83238b
    " Replace all matchparen autocommands
a83238b
!   autocmd! CursorMoved,CursorMovedI,WinEnter * call s:Highlight_Matching_Pair()
a83238b
  augroup END
a83238b
  
a83238b
  " Skip the rest if it was already done.
a83238b
***************
a83238b
*** 126,132 ****
a83238b
  endfunction
a83238b
  
a83238b
  " Define commands that will disable and enable the plugin.
a83238b
! command! NoMatchParen 3match none | unlet! g:loaded_matchparen | au! matchparen
a83238b
! command! DoMatchParen runtime plugin/matchparen.vim | doau CursorMoved
a83238b
  
a83238b
  let &cpo = cpo_save
a83238b
--- 126,133 ----
a83238b
  endfunction
a83238b
  
a83238b
  " Define commands that will disable and enable the plugin.
a83238b
! command! NoMatchParen windo 3match none | unlet! g:loaded_matchparen |
a83238b
! 	  \ au! matchparen
a83238b
! command! DoMatchParen runtime plugin/matchparen.vim | windo doau CursorMoved
a83238b
  
a83238b
  let &cpo = cpo_save
a83238b
*** ../vim-7.1.081/src/version.c	Sat Aug 18 17:46:50 2007
a83238b
--- src/version.c	Sat Aug 18 18:19:20 2007
a83238b
***************
a83238b
*** 668,669 ****
a83238b
--- 668,671 ----
a83238b
  {   /* Add new patch number below this line */
a83238b
+ /**/
a83238b
+     82,
a83238b
  /**/
a83238b
a83238b
-- 
a83238b
hundred-and-one symptoms of being an internet addict:
a83238b
195. Your cat has its own home page.
a83238b
a83238b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
a83238b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
a83238b
\\\        download, build and distribute -- http://www.A-A-P.org        ///
a83238b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///