|
Karsten Hopp |
3a6fa2 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
3a6fa2 |
Subject: Patch 7.0.093
|
|
Karsten Hopp |
3a6fa2 |
Fcc: outbox
|
|
Karsten Hopp |
3a6fa2 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
3a6fa2 |
Mime-Version: 1.0
|
|
Karsten Hopp |
3a6fa2 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
3a6fa2 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
3a6fa2 |
------------
|
|
Karsten Hopp |
3a6fa2 |
|
|
Karsten Hopp |
3a6fa2 |
Patch 7.0.093
|
|
Karsten Hopp |
3a6fa2 |
Problem: The matchparen plugin can't handle a 'matchpairs' value where a
|
|
Karsten Hopp |
3a6fa2 |
colon is matched.
|
|
Karsten Hopp |
3a6fa2 |
Solution: Change the split() that is used to change 'matchpairs' into a
|
|
Karsten Hopp |
3a6fa2 |
List.
|
|
Karsten Hopp |
3a6fa2 |
Files: runtime/plugin/matchparen.vim
|
|
Karsten Hopp |
3a6fa2 |
|
|
Karsten Hopp |
3a6fa2 |
|
|
Karsten Hopp |
3a6fa2 |
*** ../vim-7.0.092/runtime/plugin/matchparen.vim Wed Sep 6 22:13:48 2006
|
|
Karsten Hopp |
3a6fa2 |
--- runtime/plugin/matchparen.vim Sat Sep 9 13:35:54 2006
|
|
Karsten Hopp |
3a6fa2 |
***************
|
|
Karsten Hopp |
3a6fa2 |
*** 1,6 ****
|
|
Karsten Hopp |
3a6fa2 |
" Vim plugin for showing matching parens
|
|
Karsten Hopp |
3a6fa2 |
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
|
Karsten Hopp |
3a6fa2 |
! " Last Change: 2006 Jun 26
|
|
Karsten Hopp |
3a6fa2 |
|
|
Karsten Hopp |
3a6fa2 |
" Exit quickly when:
|
|
Karsten Hopp |
3a6fa2 |
" - this plugin was already loaded (or disabled)
|
|
Karsten Hopp |
3a6fa2 |
--- 1,6 ----
|
|
Karsten Hopp |
3a6fa2 |
" Vim plugin for showing matching parens
|
|
Karsten Hopp |
3a6fa2 |
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
|
Karsten Hopp |
3a6fa2 |
! " Last Change: 2006 Sep 09
|
|
Karsten Hopp |
3a6fa2 |
|
|
Karsten Hopp |
3a6fa2 |
" Exit quickly when:
|
|
Karsten Hopp |
3a6fa2 |
" - this plugin was already loaded (or disabled)
|
|
Karsten Hopp |
3a6fa2 |
***************
|
|
Karsten Hopp |
3a6fa2 |
*** 44,50 ****
|
|
Karsten Hopp |
3a6fa2 |
let before = 0
|
|
Karsten Hopp |
3a6fa2 |
|
|
Karsten Hopp |
3a6fa2 |
let c = getline(c_lnum)[c_col - 1]
|
|
Karsten Hopp |
3a6fa2 |
! let plist = split(&matchpairs, ':\|,')
|
|
Karsten Hopp |
3a6fa2 |
let i = index(plist, c)
|
|
Karsten Hopp |
3a6fa2 |
if i < 0
|
|
Karsten Hopp |
3a6fa2 |
" not found, in Insert mode try character before the cursor
|
|
Karsten Hopp |
3a6fa2 |
--- 44,50 ----
|
|
Karsten Hopp |
3a6fa2 |
let before = 0
|
|
Karsten Hopp |
3a6fa2 |
|
|
Karsten Hopp |
3a6fa2 |
let c = getline(c_lnum)[c_col - 1]
|
|
Karsten Hopp |
3a6fa2 |
! let plist = split(&matchpairs, '.\zs[:,]')
|
|
Karsten Hopp |
3a6fa2 |
let i = index(plist, c)
|
|
Karsten Hopp |
3a6fa2 |
if i < 0
|
|
Karsten Hopp |
3a6fa2 |
" not found, in Insert mode try character before the cursor
|
|
Karsten Hopp |
3a6fa2 |
*** ../vim-7.0.092/src/version.c Sat Sep 9 12:05:39 2006
|
|
Karsten Hopp |
3a6fa2 |
--- src/version.c Sat Sep 9 13:29:58 2006
|
|
Karsten Hopp |
3a6fa2 |
***************
|
|
Karsten Hopp |
3a6fa2 |
*** 668,669 ****
|
|
Karsten Hopp |
3a6fa2 |
--- 668,671 ----
|
|
Karsten Hopp |
3a6fa2 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
3a6fa2 |
+ /**/
|
|
Karsten Hopp |
3a6fa2 |
+ 93,
|
|
Karsten Hopp |
3a6fa2 |
/**/
|
|
Karsten Hopp |
3a6fa2 |
|
|
Karsten Hopp |
3a6fa2 |
--
|
|
Karsten Hopp |
3a6fa2 |
BLACK KNIGHT: I move for no man.
|
|
Karsten Hopp |
3a6fa2 |
ARTHUR: So be it!
|
|
Karsten Hopp |
3a6fa2 |
[hah] [parry thrust]
|
|
Karsten Hopp |
3a6fa2 |
[ARTHUR chops the BLACK KNIGHT's left arm off]
|
|
Karsten Hopp |
3a6fa2 |
ARTHUR: Now stand aside, worthy adversary.
|
|
Karsten Hopp |
3a6fa2 |
BLACK KNIGHT: 'Tis but a scratch.
|
|
Karsten Hopp |
3a6fa2 |
The Quest for the Holy Grail (Monty Python)
|
|
Karsten Hopp |
3a6fa2 |
|
|
Karsten Hopp |
3a6fa2 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
3a6fa2 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
3a6fa2 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
3a6fa2 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|