mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.2-086
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* diff.c: code for diff'ing two or three buffers.
|
* diff.c: code for diff'ing two, three or four buffers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "vim.h"
|
#include "vim.h"
|
||||||
@@ -116,7 +116,7 @@ diff_buf_adjust(win)
|
|||||||
* Add a buffer to make diffs for.
|
* Add a buffer to make diffs for.
|
||||||
* Call this when a new buffer is being edited in the current window where
|
* Call this when a new buffer is being edited in the current window where
|
||||||
* 'diff' is set.
|
* 'diff' is set.
|
||||||
* Marks the current buffer as being part of the diff and requireing updating.
|
* Marks the current buffer as being part of the diff and requiring updating.
|
||||||
* This must be done before any autocmd, because a command may use info
|
* This must be done before any autocmd, because a command may use info
|
||||||
* about the screen contents.
|
* about the screen contents.
|
||||||
*/
|
*/
|
||||||
@@ -929,7 +929,7 @@ ex_diffpatch(eap)
|
|||||||
goto theend;
|
goto theend;
|
||||||
|
|
||||||
#ifdef UNIX
|
#ifdef UNIX
|
||||||
/* Temporaraly chdir to /tmp, to avoid patching files in the current
|
/* Temporarily chdir to /tmp, to avoid patching files in the current
|
||||||
* directory when the patch file contains more than one patch. When we
|
* directory when the patch file contains more than one patch. When we
|
||||||
* have our own temp dir use that instead, it will be cleaned up when we
|
* have our own temp dir use that instead, it will be cleaned up when we
|
||||||
* exit (any .rej files created). Don't change directory if we can't
|
* exit (any .rej files created). Don't change directory if we can't
|
||||||
@@ -2129,6 +2129,8 @@ ex_diffgetput(eap)
|
|||||||
EMSG2(_("E102: Can't find buffer \"%s\""), eap->arg);
|
EMSG2(_("E102: Can't find buffer \"%s\""), eap->arg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (buf == curbuf)
|
||||||
|
return; /* nothing to do */
|
||||||
idx_other = diff_buf_idx(buf);
|
idx_other = diff_buf_idx(buf);
|
||||||
if (idx_other == DB_COUNT)
|
if (idx_other == DB_COUNT)
|
||||||
{
|
{
|
||||||
|
@@ -676,6 +676,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
86,
|
||||||
/**/
|
/**/
|
||||||
85,
|
85,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user