4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When the netbeans interface setModified call is used the status
12 lines and window title are not updated.
13 Solution: Redraw the status lines and title. (Philippe Fremy)
17 *** ../vim-7.1.312/src/netbeans.c Sun Mar 16 16:02:47 2008
18 --- src/netbeans.c Wed May 28 15:12:13 2008
22 * See ":help netbeans-protocol" for explanation.
25 + #if defined(MSDOS) || defined(MSWIN)
26 + # include "vimio.h" /* for mch_open(), must be before vim.h */
31 #if defined(FEAT_NETBEANS_INTG) || defined(PROTO)
35 else if (streq((char *)cmd, "setModified"))
37 if (buf == NULL || buf->bufp == NULL)
39 /* EMSG("E646: null bufp in setModified"); */
42 if (streq((char *)args, "T"))
43 ! buf->bufp->b_changed = 1;
49 else if (streq((char *)cmd, "setModified"))
53 if (buf == NULL || buf->bufp == NULL)
55 /* EMSG("E646: null bufp in setModified"); */
58 + prev_b_changed = buf->bufp->b_changed;
59 if (streq((char *)args, "T"))
60 ! buf->bufp->b_changed = TRUE;
66 if (buf->bufp->b_ffname != NULL
67 && mch_stat((char *)buf->bufp->b_ffname, &st) >= 0)
68 buf_store_time(buf->bufp, &st, buf->bufp->b_ffname);
69 ! buf->bufp->b_changed = 0;
71 buf->modified = buf->bufp->b_changed;
72 /* =====================================================================*/
74 else if (streq((char *)cmd, "setModtime"))
76 if (buf->bufp->b_ffname != NULL
77 && mch_stat((char *)buf->bufp->b_ffname, &st) >= 0)
78 buf_store_time(buf->bufp, &st, buf->bufp->b_ffname);
79 ! buf->bufp->b_changed = FALSE;
81 buf->modified = buf->bufp->b_changed;
82 + if (prev_b_changed != buf->bufp->b_changed)
85 + check_status(buf->bufp);
86 + redraw_tabline = TRUE;
93 /* =====================================================================*/
95 else if (streq((char *)cmd, "setModtime"))
96 *** ../vim-7.1.312/src/version.c Mon Jun 9 14:45:17 2008
97 --- src/version.c Mon Jun 9 15:08:40 2008
101 { /* Add new patch number below this line */
107 Q: What is the difference betwee open-source and commercial software?
108 A: If you have a problem with commercial software you can call a phone
109 number and they will tell you it might be solved in a future version.
110 For open-source software there isn't a phone number to call, but you
111 get the solution within a day.
113 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
114 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
115 \\\ download, build and distribute -- http://www.A-A-P.org ///
116 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///