|
|
073263 |
To: vim_dev@googlegroups.com
|
|
|
073263 |
Subject: Patch 7.4.490
|
|
|
073263 |
Fcc: outbox
|
|
|
073263 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
073263 |
Mime-Version: 1.0
|
|
|
073263 |
Content-Type: text/plain; charset=UTF-8
|
|
|
073263 |
Content-Transfer-Encoding: 8bit
|
|
|
073263 |
------------
|
|
|
073263 |
|
|
|
073263 |
Patch 7.4.490
|
|
|
073263 |
Problem: Cannot specify the buffer to use for "do" and "dp", making them
|
|
|
073263 |
useless for three-way diff.
|
|
|
073263 |
Solution: Use the count as the buffer number. (James McCoy)
|
|
|
073263 |
Files: runtime/doc/diff.txt, src/diff.c, src/normal.c, src/proto/diff.pro
|
|
|
073263 |
|
|
|
073263 |
|
|
|
073263 |
*** ../vim-7.4.489/runtime/doc/diff.txt 2013-08-10 13:24:52.000000000 +0200
|
|
|
073263 |
--- runtime/doc/diff.txt 2014-10-31 13:39:22.443236141 +0100
|
|
|
073263 |
***************
|
|
|
073263 |
*** 95,101 ****
|
|
|
073263 |
:difft[his] Make the current window part of the diff windows. This sets
|
|
|
073263 |
the options like for "vimdiff".
|
|
|
073263 |
|
|
|
073263 |
! :diffp[atch] {patchfile} *E816* *:diffp* *:diffpatch*
|
|
|
073263 |
Use the current buffer, patch it with the diff found in
|
|
|
073263 |
{patchfile} and open a buffer on the result. The options are
|
|
|
073263 |
set as for "vimdiff".
|
|
|
073263 |
--- 95,101 ----
|
|
|
073263 |
:difft[his] Make the current window part of the diff windows. This sets
|
|
|
073263 |
the options like for "vimdiff".
|
|
|
073263 |
|
|
|
073263 |
! :diffp[atch] {patchfile} *E816* *:diffp* *:diffpatch*
|
|
|
073263 |
Use the current buffer, patch it with the diff found in
|
|
|
073263 |
{patchfile} and open a buffer on the result. The options are
|
|
|
073263 |
set as for "vimdiff".
|
|
|
073263 |
***************
|
|
|
073263 |
*** 123,132 ****
|
|
|
073263 |
file for a moment and come back to the same file and be in diff mode again.
|
|
|
073263 |
|
|
|
073263 |
*:diffo* *:diffoff*
|
|
|
073263 |
! :diffo[ff] Switch off diff mode for the current window.
|
|
|
073263 |
|
|
|
073263 |
:diffo[ff]! Switch off diff mode for the current window and in all windows
|
|
|
073263 |
! in the current tab page where 'diff' is set.
|
|
|
073263 |
|
|
|
073263 |
The ":diffoff" command resets the relevant options to the values they had when
|
|
|
073263 |
using |:diffsplit|, |:diffpatch| , |:diffthis|. or starting Vim in diff mode.
|
|
|
073263 |
--- 123,136 ----
|
|
|
073263 |
file for a moment and come back to the same file and be in diff mode again.
|
|
|
073263 |
|
|
|
073263 |
*:diffo* *:diffoff*
|
|
|
073263 |
! :diffo[ff] Switch off diff mode for the current window. Resets related
|
|
|
073263 |
! options also when 'diff' was not set.
|
|
|
073263 |
|
|
|
073263 |
:diffo[ff]! Switch off diff mode for the current window and in all windows
|
|
|
073263 |
! in the current tab page where 'diff' is set. Resetting
|
|
|
073263 |
! related options only happens in a window that has 'diff' set,
|
|
|
073263 |
! if the current window does not have 'diff' set then no options
|
|
|
073263 |
! in it are changed.
|
|
|
073263 |
|
|
|
073263 |
The ":diffoff" command resets the relevant options to the values they had when
|
|
|
073263 |
using |:diffsplit|, |:diffpatch| , |:diffthis|. or starting Vim in diff mode.
|
|
|
073263 |
***************
|
|
|
073263 |
*** 262,274 ****
|
|
|
073263 |
See below for [range].
|
|
|
073263 |
|
|
|
073263 |
*do*
|
|
|
073263 |
! do Same as ":diffget" without argument or range. The "o" stands
|
|
|
073263 |
! for "obtain" ("dg" can't be used, it could be the start of
|
|
|
073263 |
! "dgg"!). Note: this doesn't work in Visual mode.
|
|
|
073263 |
|
|
|
073263 |
*dp*
|
|
|
073263 |
! dp Same as ":diffput" without argument or range.
|
|
|
073263 |
! Note: this doesn't work in Visual mode.
|
|
|
073263 |
|
|
|
073263 |
|
|
|
073263 |
When no [range] is given, the diff at the cursor position or just above it is
|
|
|
073263 |
--- 266,282 ----
|
|
|
073263 |
See below for [range].
|
|
|
073263 |
|
|
|
073263 |
*do*
|
|
|
073263 |
! [count]do Same as ":diffget" without range. The "o" stands for "obtain"
|
|
|
073263 |
! ("dg" can't be used, it could be the start of "dgg"!). Note:
|
|
|
073263 |
! this doesn't work in Visual mode.
|
|
|
073263 |
! If you give a [count], it is used as the [bufspec] argument
|
|
|
073263 |
! for ":diffget".
|
|
|
073263 |
|
|
|
073263 |
*dp*
|
|
|
073263 |
! [count]dp Same as ":diffput" without range. Note: this doesn't work in
|
|
|
073263 |
! Visual mode.
|
|
|
073263 |
! If you give a [count], it is used as the [bufspec] argument
|
|
|
073263 |
! for ":diffput".
|
|
|
073263 |
|
|
|
073263 |
|
|
|
073263 |
When no [range] is given, the diff at the cursor position or just above it is
|
|
|
073263 |
*** ../vim-7.4.489/src/diff.c 2014-10-15 12:56:44.006015955 +0200
|
|
|
073263 |
--- src/diff.c 2014-10-31 13:44:20.739228953 +0100
|
|
|
073263 |
***************
|
|
|
073263 |
*** 2107,2118 ****
|
|
|
073263 |
* "dp" and "do" commands.
|
|
|
073263 |
*/
|
|
|
073263 |
void
|
|
|
073263 |
! nv_diffgetput(put)
|
|
|
073263 |
int put;
|
|
|
073263 |
{
|
|
|
073263 |
exarg_T ea;
|
|
|
073263 |
|
|
|
073263 |
! ea.arg = (char_u *)"";
|
|
|
073263 |
if (put)
|
|
|
073263 |
ea.cmdidx = CMD_diffput;
|
|
|
073263 |
else
|
|
|
073263 |
--- 2107,2126 ----
|
|
|
073263 |
* "dp" and "do" commands.
|
|
|
073263 |
*/
|
|
|
073263 |
void
|
|
|
073263 |
! nv_diffgetput(put, count)
|
|
|
073263 |
int put;
|
|
|
073263 |
+ long count;
|
|
|
073263 |
{
|
|
|
073263 |
exarg_T ea;
|
|
|
073263 |
+ char_u buf[30];
|
|
|
073263 |
|
|
|
073263 |
! if (count == 0)
|
|
|
073263 |
! ea.arg = (char_u *)"";
|
|
|
073263 |
! else
|
|
|
073263 |
! {
|
|
|
073263 |
! vim_snprintf((char *)buf, 30, "%ld", count);
|
|
|
073263 |
! ea.arg = buf;
|
|
|
073263 |
! }
|
|
|
073263 |
if (put)
|
|
|
073263 |
ea.cmdidx = CMD_diffput;
|
|
|
073263 |
else
|
|
|
073263 |
*** ../vim-7.4.489/src/normal.c 2014-10-09 14:48:26.284898230 +0200
|
|
|
073263 |
--- src/normal.c 2014-10-31 13:36:32.671240232 +0100
|
|
|
073263 |
***************
|
|
|
073263 |
*** 9284,9290 ****
|
|
|
073263 |
if (cap->oap->op_type == OP_DELETE && cap->cmdchar == 'p')
|
|
|
073263 |
{
|
|
|
073263 |
clearop(cap->oap);
|
|
|
073263 |
! nv_diffgetput(TRUE);
|
|
|
073263 |
}
|
|
|
073263 |
else
|
|
|
073263 |
#endif
|
|
|
073263 |
--- 9284,9290 ----
|
|
|
073263 |
if (cap->oap->op_type == OP_DELETE && cap->cmdchar == 'p')
|
|
|
073263 |
{
|
|
|
073263 |
clearop(cap->oap);
|
|
|
073263 |
! nv_diffgetput(TRUE, cap->opcount);
|
|
|
073263 |
}
|
|
|
073263 |
else
|
|
|
073263 |
#endif
|
|
|
073263 |
***************
|
|
|
073263 |
*** 9407,9413 ****
|
|
|
073263 |
if (cap->oap->op_type == OP_DELETE && cap->cmdchar == 'o')
|
|
|
073263 |
{
|
|
|
073263 |
clearop(cap->oap);
|
|
|
073263 |
! nv_diffgetput(FALSE);
|
|
|
073263 |
}
|
|
|
073263 |
else
|
|
|
073263 |
#endif
|
|
|
073263 |
--- 9407,9413 ----
|
|
|
073263 |
if (cap->oap->op_type == OP_DELETE && cap->cmdchar == 'o')
|
|
|
073263 |
{
|
|
|
073263 |
clearop(cap->oap);
|
|
|
073263 |
! nv_diffgetput(FALSE, cap->opcount);
|
|
|
073263 |
}
|
|
|
073263 |
else
|
|
|
073263 |
#endif
|
|
|
073263 |
*** ../vim-7.4.489/src/proto/diff.pro 2013-08-10 13:37:07.000000000 +0200
|
|
|
073263 |
--- src/proto/diff.pro 2014-10-31 13:36:32.671240232 +0100
|
|
|
073263 |
***************
|
|
|
073263 |
*** 18,24 ****
|
|
|
073263 |
int diffopt_horizontal __ARGS((void));
|
|
|
073263 |
int diff_find_change __ARGS((win_T *wp, linenr_T lnum, int *startp, int *endp));
|
|
|
073263 |
int diff_infold __ARGS((win_T *wp, linenr_T lnum));
|
|
|
073263 |
! void nv_diffgetput __ARGS((int put));
|
|
|
073263 |
void ex_diffgetput __ARGS((exarg_T *eap));
|
|
|
073263 |
int diff_mode_buf __ARGS((buf_T *buf));
|
|
|
073263 |
int diff_move_to __ARGS((int dir, long count));
|
|
|
073263 |
--- 18,24 ----
|
|
|
073263 |
int diffopt_horizontal __ARGS((void));
|
|
|
073263 |
int diff_find_change __ARGS((win_T *wp, linenr_T lnum, int *startp, int *endp));
|
|
|
073263 |
int diff_infold __ARGS((win_T *wp, linenr_T lnum));
|
|
|
073263 |
! void nv_diffgetput __ARGS((int put, long count));
|
|
|
073263 |
void ex_diffgetput __ARGS((exarg_T *eap));
|
|
|
073263 |
int diff_mode_buf __ARGS((buf_T *buf));
|
|
|
073263 |
int diff_move_to __ARGS((int dir, long count));
|
|
|
073263 |
*** ../vim-7.4.489/src/version.c 2014-10-31 12:41:57.427319153 +0100
|
|
|
073263 |
--- src/version.c 2014-10-31 13:37:54.511238260 +0100
|
|
|
073263 |
***************
|
|
|
073263 |
*** 743,744 ****
|
|
|
073263 |
--- 743,746 ----
|
|
|
073263 |
{ /* Add new patch number below this line */
|
|
|
073263 |
+ /**/
|
|
|
073263 |
+ 490,
|
|
|
073263 |
/**/
|
|
|
073263 |
|
|
|
073263 |
--
|
|
|
073263 |
GUARD #2: It could be carried by an African swallow!
|
|
|
073263 |
GUARD #1: Oh, yeah, an African swallow maybe, but not a European swallow,
|
|
|
073263 |
that's my point.
|
|
|
073263 |
GUARD #2: Oh, yeah, I agree with that...
|
|
|
073263 |
The Quest for the Holy Grail (Monty Python)
|
|
|
073263 |
|
|
|
073263 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
073263 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
073263 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
073263 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|