|
Karsten Hopp |
ed699e |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
ed699e |
Subject: Patch 7.4.110
|
|
Karsten Hopp |
ed699e |
Fcc: outbox
|
|
Karsten Hopp |
ed699e |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
ed699e |
Mime-Version: 1.0
|
|
Karsten Hopp |
ed699e |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
ed699e |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
ed699e |
------------
|
|
Karsten Hopp |
ed699e |
|
|
Karsten Hopp |
ed699e |
Patch 7.4.110
|
|
Karsten Hopp |
ed699e |
Problem: "gUgn" cannot be repeeated. (Dimitar Dimitrov)
|
|
Karsten Hopp |
ed699e |
Solution: Don't put "gn" in a different order in the redo buffer. Restore
|
|
Karsten Hopp |
ed699e |
'wrapscan' when the pattern isn't found. (Christian Wellenbrock)
|
|
Karsten Hopp |
ed699e |
Files: src/normal.c, src/search.c, src/test53.in, src/test53.ok
|
|
Karsten Hopp |
ed699e |
|
|
Karsten Hopp |
ed699e |
|
|
Karsten Hopp |
ed699e |
*** ../vim-7.4.109/src/normal.c 2013-11-04 01:41:11.000000000 +0100
|
|
Karsten Hopp |
ed699e |
--- src/normal.c 2013-11-28 19:02:45.000000000 +0100
|
|
Karsten Hopp |
ed699e |
***************
|
|
Karsten Hopp |
ed699e |
*** 962,972 ****
|
|
Karsten Hopp |
ed699e |
#ifdef FEAT_CMDL_INFO
|
|
Karsten Hopp |
ed699e |
need_flushbuf |= add_to_showcmd(ca.nchar);
|
|
Karsten Hopp |
ed699e |
#endif
|
|
Karsten Hopp |
ed699e |
- /* For "gn" from redo, need to get one more char to determine the
|
|
Karsten Hopp |
ed699e |
- * operator */
|
|
Karsten Hopp |
ed699e |
if (ca.nchar == 'r' || ca.nchar == '\'' || ca.nchar == '`'
|
|
Karsten Hopp |
ed699e |
! || ca.nchar == Ctrl_BSL
|
|
Karsten Hopp |
ed699e |
! || ((ca.nchar == 'n' || ca.nchar == 'N') && !stuff_empty()))
|
|
Karsten Hopp |
ed699e |
{
|
|
Karsten Hopp |
ed699e |
cp = &ca.extra_char; /* need to get a third character */
|
|
Karsten Hopp |
ed699e |
if (ca.nchar != 'r')
|
|
Karsten Hopp |
ed699e |
--- 962,969 ----
|
|
Karsten Hopp |
ed699e |
#ifdef FEAT_CMDL_INFO
|
|
Karsten Hopp |
ed699e |
need_flushbuf |= add_to_showcmd(ca.nchar);
|
|
Karsten Hopp |
ed699e |
#endif
|
|
Karsten Hopp |
ed699e |
if (ca.nchar == 'r' || ca.nchar == '\'' || ca.nchar == '`'
|
|
Karsten Hopp |
ed699e |
! || ca.nchar == Ctrl_BSL)
|
|
Karsten Hopp |
ed699e |
{
|
|
Karsten Hopp |
ed699e |
cp = &ca.extra_char; /* need to get a third character */
|
|
Karsten Hopp |
ed699e |
if (ca.nchar != 'r')
|
|
Karsten Hopp |
ed699e |
***************
|
|
Karsten Hopp |
ed699e |
*** 1797,1806 ****
|
|
Karsten Hopp |
ed699e |
* otherwise it might be the second char of the operator. */
|
|
Karsten Hopp |
ed699e |
if (cap->cmdchar == 'g' && (cap->nchar == 'n'
|
|
Karsten Hopp |
ed699e |
|| cap->nchar == 'N'))
|
|
Karsten Hopp |
ed699e |
! /* "gn" and "gN" are a bit different */
|
|
Karsten Hopp |
ed699e |
! prep_redo(oap->regname, 0L, NUL, cap->cmdchar, cap->nchar,
|
|
Karsten Hopp |
ed699e |
! get_op_char(oap->op_type),
|
|
Karsten Hopp |
ed699e |
! get_extra_op_char(oap->op_type));
|
|
Karsten Hopp |
ed699e |
else if (cap->cmdchar != ':')
|
|
Karsten Hopp |
ed699e |
prep_redo(oap->regname, 0L, NUL, 'v',
|
|
Karsten Hopp |
ed699e |
get_op_char(oap->op_type),
|
|
Karsten Hopp |
ed699e |
--- 1794,1802 ----
|
|
Karsten Hopp |
ed699e |
* otherwise it might be the second char of the operator. */
|
|
Karsten Hopp |
ed699e |
if (cap->cmdchar == 'g' && (cap->nchar == 'n'
|
|
Karsten Hopp |
ed699e |
|| cap->nchar == 'N'))
|
|
Karsten Hopp |
ed699e |
! prep_redo(oap->regname, cap->count0,
|
|
Karsten Hopp |
ed699e |
! get_op_char(oap->op_type), get_extra_op_char(oap->op_type),
|
|
Karsten Hopp |
ed699e |
! oap->motion_force, cap->cmdchar, cap->nchar);
|
|
Karsten Hopp |
ed699e |
else if (cap->cmdchar != ':')
|
|
Karsten Hopp |
ed699e |
prep_redo(oap->regname, 0L, NUL, 'v',
|
|
Karsten Hopp |
ed699e |
get_op_char(oap->op_type),
|
|
Karsten Hopp |
ed699e |
*** ../vim-7.4.109/src/search.c 2013-11-08 04:30:06.000000000 +0100
|
|
Karsten Hopp |
ed699e |
--- src/search.c 2013-11-28 19:05:16.000000000 +0100
|
|
Karsten Hopp |
ed699e |
***************
|
|
Karsten Hopp |
ed699e |
*** 4544,4550 ****
|
|
Karsten Hopp |
ed699e |
/* Is the pattern is zero-width? */
|
|
Karsten Hopp |
ed699e |
one_char = is_one_char(spats[last_idx].pat);
|
|
Karsten Hopp |
ed699e |
if (one_char == -1)
|
|
Karsten Hopp |
ed699e |
! return FAIL; /* invalid pattern */
|
|
Karsten Hopp |
ed699e |
|
|
Karsten Hopp |
ed699e |
/*
|
|
Karsten Hopp |
ed699e |
* The trick is to first search backwards and then search forward again,
|
|
Karsten Hopp |
ed699e |
--- 4544,4553 ----
|
|
Karsten Hopp |
ed699e |
/* Is the pattern is zero-width? */
|
|
Karsten Hopp |
ed699e |
one_char = is_one_char(spats[last_idx].pat);
|
|
Karsten Hopp |
ed699e |
if (one_char == -1)
|
|
Karsten Hopp |
ed699e |
! {
|
|
Karsten Hopp |
ed699e |
! p_ws = old_p_ws;
|
|
Karsten Hopp |
ed699e |
! return FAIL; /* pattern not found */
|
|
Karsten Hopp |
ed699e |
! }
|
|
Karsten Hopp |
ed699e |
|
|
Karsten Hopp |
ed699e |
/*
|
|
Karsten Hopp |
ed699e |
* The trick is to first search backwards and then search forward again,
|
|
Karsten Hopp |
ed699e |
*** ../vim-7.4.109/src/version.c 2013-11-28 18:53:47.000000000 +0100
|
|
Karsten Hopp |
ed699e |
--- src/version.c 2013-11-28 19:20:29.000000000 +0100
|
|
Karsten Hopp |
ed699e |
***************
|
|
Karsten Hopp |
ed699e |
*** 740,741 ****
|
|
Karsten Hopp |
ed699e |
--- 740,743 ----
|
|
Karsten Hopp |
ed699e |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
ed699e |
+ /**/
|
|
Karsten Hopp |
ed699e |
+ 110,
|
|
Karsten Hopp |
ed699e |
/**/
|
|
Karsten Hopp |
ed699e |
|
|
Karsten Hopp |
ed699e |
--
|
|
Karsten Hopp |
ed699e |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
ed699e |
10. And even your night dreams are in HTML.
|
|
Karsten Hopp |
ed699e |
|
|
Karsten Hopp |
ed699e |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
ed699e |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
ed699e |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
ed699e |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|