summaryrefslogtreecommitdiff
path: root/src/netbeans.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-06-09 13:10:45 +0000
committerBram Moolenaar <Bram@vim.org>2008-06-09 13:10:45 +0000
commitff064e1698a09afc73643fa160705c8a5ac95234 (patch)
tree6872b122cd586eee06a83fe2c977556542e95990 /src/netbeans.c
parent595f51cb223503280349b0eb4c4826241ab1402d (diff)
downloadvim-ff064e1698a09afc73643fa160705c8a5ac95234.zip
updated for version 7.1-313
Diffstat (limited to 'src/netbeans.c')
-rw-r--r--src/netbeans.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/netbeans.c b/src/netbeans.c
index ed415a5cc..a06690c44 100644
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -16,6 +16,10 @@
* 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"
#if defined(FEAT_NETBEANS_INTG) || defined(PROTO)
@@ -1974,13 +1978,16 @@ nb_do_cmd(
}
else if (streq((char *)cmd, "setModified"))
{
+ int prev_b_changed;
+
if (buf == NULL || buf->bufp == NULL)
{
/* EMSG("E646: null bufp in setModified"); */
return FAIL;
}
+ prev_b_changed = buf->bufp->b_changed;
if (streq((char *)args, "T"))
- buf->bufp->b_changed = 1;
+ buf->bufp->b_changed = TRUE;
else
{
struct stat st;
@@ -1990,9 +1997,20 @@ nb_do_cmd(
if (buf->bufp->b_ffname != NULL
&& mch_stat((char *)buf->bufp->b_ffname, &st) >= 0)
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;
+ 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"))