mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
updated for version 7.1-313
This commit is contained in:
@@ -16,6 +16,10 @@
|
|||||||
* See ":help netbeans-protocol" for explanation.
|
* See ":help netbeans-protocol" for explanation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(MSDOS) || defined(MSWIN)
|
||||||
|
# include "vimio.h" /* for mch_open(), must be before vim.h */
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "vim.h"
|
#include "vim.h"
|
||||||
|
|
||||||
#if defined(FEAT_NETBEANS_INTG) || defined(PROTO)
|
#if defined(FEAT_NETBEANS_INTG) || defined(PROTO)
|
||||||
@@ -1974,13 +1978,16 @@ nb_do_cmd(
|
|||||||
}
|
}
|
||||||
else if (streq((char *)cmd, "setModified"))
|
else if (streq((char *)cmd, "setModified"))
|
||||||
{
|
{
|
||||||
|
int prev_b_changed;
|
||||||
|
|
||||||
if (buf == NULL || buf->bufp == NULL)
|
if (buf == NULL || buf->bufp == NULL)
|
||||||
{
|
{
|
||||||
/* EMSG("E646: null bufp in setModified"); */
|
/* EMSG("E646: null bufp in setModified"); */
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
|
prev_b_changed = buf->bufp->b_changed;
|
||||||
if (streq((char *)args, "T"))
|
if (streq((char *)args, "T"))
|
||||||
buf->bufp->b_changed = 1;
|
buf->bufp->b_changed = TRUE;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
@@ -1990,9 +1997,20 @@ nb_do_cmd(
|
|||||||
if (buf->bufp->b_ffname != NULL
|
if (buf->bufp->b_ffname != NULL
|
||||||
&& mch_stat((char *)buf->bufp->b_ffname, &st) >= 0)
|
&& mch_stat((char *)buf->bufp->b_ffname, &st) >= 0)
|
||||||
buf_store_time(buf->bufp, &st, buf->bufp->b_ffname);
|
buf_store_time(buf->bufp, &st, buf->bufp->b_ffname);
|
||||||
buf->bufp->b_changed = 0;
|
buf->bufp->b_changed = FALSE;
|
||||||
}
|
}
|
||||||
buf->modified = buf->bufp->b_changed;
|
buf->modified = buf->bufp->b_changed;
|
||||||
|
if (prev_b_changed != buf->bufp->b_changed)
|
||||||
|
{
|
||||||
|
#ifdef FEAT_WINDOWS
|
||||||
|
check_status(buf->bufp);
|
||||||
|
redraw_tabline = TRUE;
|
||||||
|
#endif
|
||||||
|
#ifdef FEAT_TITLE
|
||||||
|
maketitle();
|
||||||
|
#endif
|
||||||
|
update_screen(0);
|
||||||
|
}
|
||||||
/* =====================================================================*/
|
/* =====================================================================*/
|
||||||
}
|
}
|
||||||
else if (streq((char *)cmd, "setModtime"))
|
else if (streq((char *)cmd, "setModtime"))
|
||||||
|
@@ -666,6 +666,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 */
|
||||||
|
/**/
|
||||||
|
313,
|
||||||
/**/
|
/**/
|
||||||
312,
|
312,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user