|
Karsten Hopp |
9c3490 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
9c3490 |
Subject: Patch 7.1.238
|
|
Karsten Hopp |
9c3490 |
Fcc: outbox
|
|
Karsten Hopp |
9c3490 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
9c3490 |
Mime-Version: 1.0
|
|
Karsten Hopp |
9c3490 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
9c3490 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
9c3490 |
------------
|
|
Karsten Hopp |
9c3490 |
|
|
Karsten Hopp |
9c3490 |
Patch 7.1.238
|
|
Karsten Hopp |
9c3490 |
Problem: Using the 'c' flag with searchpair() may cause it to fail. Using
|
|
Karsten Hopp |
9c3490 |
the 'r' flag doesn't work when 'wrapscan' is set. (A.Politz)
|
|
Karsten Hopp |
9c3490 |
Solution: Only use the 'c' flag for the first search, not for repeating.
|
|
Karsten Hopp |
9c3490 |
When using 'r' imply 'W'. (Antony Scriven)
|
|
Karsten Hopp |
9c3490 |
Files: src/eval.c
|
|
Karsten Hopp |
9c3490 |
|
|
Karsten Hopp |
9c3490 |
|
|
Karsten Hopp |
9c3490 |
*** ../vim-7.1.237/src/eval.c Sat Jan 12 16:45:25 2008
|
|
Karsten Hopp |
9c3490 |
--- src/eval.c Tue Jan 22 11:42:28 2008
|
|
Karsten Hopp |
9c3490 |
***************
|
|
Karsten Hopp |
9c3490 |
*** 14189,14194 ****
|
|
Karsten Hopp |
9c3490 |
--- 14189,14198 ----
|
|
Karsten Hopp |
9c3490 |
goto theend;
|
|
Karsten Hopp |
9c3490 |
}
|
|
Karsten Hopp |
9c3490 |
|
|
Karsten Hopp |
9c3490 |
+ /* Using 'r' implies 'W', otherwise it doesn't work. */
|
|
Karsten Hopp |
9c3490 |
+ if (flags & SP_REPEAT)
|
|
Karsten Hopp |
9c3490 |
+ p_ws = FALSE;
|
|
Karsten Hopp |
9c3490 |
+
|
|
Karsten Hopp |
9c3490 |
/* Optional fifth argument: skip expression */
|
|
Karsten Hopp |
9c3490 |
if (argvars[3].v_type == VAR_UNKNOWN
|
|
Karsten Hopp |
9c3490 |
|| argvars[4].v_type == VAR_UNKNOWN)
|
|
Karsten Hopp |
9c3490 |
***************
|
|
Karsten Hopp |
9c3490 |
*** 14344,14349 ****
|
|
Karsten Hopp |
9c3490 |
--- 14348,14356 ----
|
|
Karsten Hopp |
9c3490 |
incl(&pos;;
|
|
Karsten Hopp |
9c3490 |
}
|
|
Karsten Hopp |
9c3490 |
foundpos = pos;
|
|
Karsten Hopp |
9c3490 |
+
|
|
Karsten Hopp |
9c3490 |
+ /* clear the start flag to avoid getting stuck here */
|
|
Karsten Hopp |
9c3490 |
+ options &= ~SEARCH_START;
|
|
Karsten Hopp |
9c3490 |
|
|
Karsten Hopp |
9c3490 |
/* If the skip pattern matches, ignore this match. */
|
|
Karsten Hopp |
9c3490 |
if (*skip != NUL)
|
|
Karsten Hopp |
9c3490 |
*** ../vim-7.1.237/src/version.c Tue Jan 22 11:06:06 2008
|
|
Karsten Hopp |
9c3490 |
--- src/version.c Tue Jan 22 11:57:28 2008
|
|
Karsten Hopp |
9c3490 |
***************
|
|
Karsten Hopp |
9c3490 |
*** 668,669 ****
|
|
Karsten Hopp |
9c3490 |
--- 668,671 ----
|
|
Karsten Hopp |
9c3490 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
9c3490 |
+ /**/
|
|
Karsten Hopp |
9c3490 |
+ 238,
|
|
Karsten Hopp |
9c3490 |
/**/
|
|
Karsten Hopp |
9c3490 |
|
|
Karsten Hopp |
9c3490 |
--
|
|
Karsten Hopp |
9c3490 |
To keep milk from turning sour: Keep it in the cow.
|
|
Karsten Hopp |
9c3490 |
|
|
Karsten Hopp |
9c3490 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
9c3490 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
9c3490 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
9c3490 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|