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