|
Karsten Hopp |
b0193d |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
b0193d |
Subject: Patch 7.3.785
|
|
Karsten Hopp |
b0193d |
Fcc: outbox
|
|
Karsten Hopp |
b0193d |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
b0193d |
Mime-Version: 1.0
|
|
Karsten Hopp |
b0193d |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
b0193d |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
b0193d |
------------
|
|
Karsten Hopp |
b0193d |
|
|
Karsten Hopp |
b0193d |
Patch 7.3.785 (after 7.3.776)
|
|
Karsten Hopp |
b0193d |
Problem: Crash with specific use of search pattern.
|
|
Karsten Hopp |
b0193d |
Solution: Initialize reg_buf to curbuf.
|
|
Karsten Hopp |
b0193d |
Files: src/regexp.c
|
|
Karsten Hopp |
b0193d |
|
|
Karsten Hopp |
b0193d |
|
|
Karsten Hopp |
b0193d |
*** ../vim-7.3.784/src/regexp.c 2013-01-23 15:53:08.000000000 +0100
|
|
Karsten Hopp |
b0193d |
--- src/regexp.c 2013-01-25 20:04:14.000000000 +0100
|
|
Karsten Hopp |
b0193d |
***************
|
|
Karsten Hopp |
b0193d |
*** 3413,3419 ****
|
|
Karsten Hopp |
b0193d |
* reg_startpos <invalid> reg_mmatch->startpos
|
|
Karsten Hopp |
b0193d |
* reg_endpos <invalid> reg_mmatch->endpos
|
|
Karsten Hopp |
b0193d |
* reg_win NULL window in which to search
|
|
Karsten Hopp |
b0193d |
! * reg_buf <invalid> buffer in which to search
|
|
Karsten Hopp |
b0193d |
* reg_firstlnum <invalid> first line in which to search
|
|
Karsten Hopp |
b0193d |
* reg_maxline 0 last line nr
|
|
Karsten Hopp |
b0193d |
* reg_line_lbr FALSE or TRUE FALSE
|
|
Karsten Hopp |
b0193d |
--- 3413,3419 ----
|
|
Karsten Hopp |
b0193d |
* reg_startpos <invalid> reg_mmatch->startpos
|
|
Karsten Hopp |
b0193d |
* reg_endpos <invalid> reg_mmatch->endpos
|
|
Karsten Hopp |
b0193d |
* reg_win NULL window in which to search
|
|
Karsten Hopp |
b0193d |
! * reg_buf curbuf buffer in which to search
|
|
Karsten Hopp |
b0193d |
* reg_firstlnum <invalid> first line in which to search
|
|
Karsten Hopp |
b0193d |
* reg_maxline 0 last line nr
|
|
Karsten Hopp |
b0193d |
* reg_line_lbr FALSE or TRUE FALSE
|
|
Karsten Hopp |
b0193d |
***************
|
|
Karsten Hopp |
b0193d |
*** 3571,3576 ****
|
|
Karsten Hopp |
b0193d |
--- 3571,3577 ----
|
|
Karsten Hopp |
b0193d |
reg_mmatch = NULL;
|
|
Karsten Hopp |
b0193d |
reg_maxline = 0;
|
|
Karsten Hopp |
b0193d |
reg_line_lbr = FALSE;
|
|
Karsten Hopp |
b0193d |
+ reg_buf = curbuf;
|
|
Karsten Hopp |
b0193d |
reg_win = NULL;
|
|
Karsten Hopp |
b0193d |
ireg_ic = rmp->rm_ic;
|
|
Karsten Hopp |
b0193d |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
b0193d |
***************
|
|
Karsten Hopp |
b0193d |
*** 3595,3600 ****
|
|
Karsten Hopp |
b0193d |
--- 3596,3602 ----
|
|
Karsten Hopp |
b0193d |
reg_mmatch = NULL;
|
|
Karsten Hopp |
b0193d |
reg_maxline = 0;
|
|
Karsten Hopp |
b0193d |
reg_line_lbr = TRUE;
|
|
Karsten Hopp |
b0193d |
+ reg_buf = curbuf;
|
|
Karsten Hopp |
b0193d |
reg_win = NULL;
|
|
Karsten Hopp |
b0193d |
ireg_ic = rmp->rm_ic;
|
|
Karsten Hopp |
b0193d |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
b0193d |
***************
|
|
Karsten Hopp |
b0193d |
*** 4311,4318 ****
|
|
Karsten Hopp |
b0193d |
#endif
|
|
Karsten Hopp |
b0193d |
else
|
|
Karsten Hopp |
b0193d |
{
|
|
Karsten Hopp |
b0193d |
! if (!vim_iswordc_buf(c, reg_buf)
|
|
Karsten Hopp |
b0193d |
! || (reginput > regline && vim_iswordc_buf(reginput[-1], reg_buf)))
|
|
Karsten Hopp |
b0193d |
status = RA_NOMATCH;
|
|
Karsten Hopp |
b0193d |
}
|
|
Karsten Hopp |
b0193d |
break;
|
|
Karsten Hopp |
b0193d |
--- 4313,4320 ----
|
|
Karsten Hopp |
b0193d |
#endif
|
|
Karsten Hopp |
b0193d |
else
|
|
Karsten Hopp |
b0193d |
{
|
|
Karsten Hopp |
b0193d |
! if (!vim_iswordc_buf(c, reg_buf) || (reginput > regline
|
|
Karsten Hopp |
b0193d |
! && vim_iswordc_buf(reginput[-1], reg_buf)))
|
|
Karsten Hopp |
b0193d |
status = RA_NOMATCH;
|
|
Karsten Hopp |
b0193d |
}
|
|
Karsten Hopp |
b0193d |
break;
|
|
Karsten Hopp |
b0193d |
***************
|
|
Karsten Hopp |
b0193d |
*** 7135,7140 ****
|
|
Karsten Hopp |
b0193d |
--- 7137,7143 ----
|
|
Karsten Hopp |
b0193d |
reg_match = rmp;
|
|
Karsten Hopp |
b0193d |
reg_mmatch = NULL;
|
|
Karsten Hopp |
b0193d |
reg_maxline = 0;
|
|
Karsten Hopp |
b0193d |
+ reg_buf = curbuf;
|
|
Karsten Hopp |
b0193d |
return vim_regsub_both(source, dest, copy, magic, backslash);
|
|
Karsten Hopp |
b0193d |
}
|
|
Karsten Hopp |
b0193d |
#endif
|
|
Karsten Hopp |
b0193d |
*** ../vim-7.3.784/src/version.c 2013-01-25 19:28:34.000000000 +0100
|
|
Karsten Hopp |
b0193d |
--- src/version.c 2013-01-25 20:09:30.000000000 +0100
|
|
Karsten Hopp |
b0193d |
***************
|
|
Karsten Hopp |
b0193d |
*** 727,728 ****
|
|
Karsten Hopp |
b0193d |
--- 727,730 ----
|
|
Karsten Hopp |
b0193d |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
b0193d |
+ /**/
|
|
Karsten Hopp |
b0193d |
+ 785,
|
|
Karsten Hopp |
b0193d |
/**/
|
|
Karsten Hopp |
b0193d |
|
|
Karsten Hopp |
b0193d |
--
|
|
Karsten Hopp |
b0193d |
ARTHUR: Well, I can't just call you `Man'.
|
|
Karsten Hopp |
b0193d |
DENNIS: Well, you could say `Dennis'.
|
|
Karsten Hopp |
b0193d |
ARTHUR: Well, I didn't know you were called `Dennis.'
|
|
Karsten Hopp |
b0193d |
DENNIS: Well, you didn't bother to find out, did you?
|
|
Karsten Hopp |
b0193d |
The Quest for the Holy Grail (Monty Python)
|
|
Karsten Hopp |
b0193d |
|
|
Karsten Hopp |
b0193d |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
b0193d |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
b0193d |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
b0193d |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|