]> git.pld-linux.org Git - packages/vim.git/blob - 7.1.313
- updated to 7.1.326
[packages/vim.git] / 7.1.313
1 To: vim-dev@vim.org
2 Subject: Patch 7.1.313
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.1.313
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)
14 Files:      src/netbeans.c
15
16
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
19 ***************
20 *** 16,21 ****
21 --- 16,25 ----
22    * See ":help netbeans-protocol" for explanation.
23    */
24   
25 + #if defined(MSDOS) || defined(MSWIN)
26 + # include "vimio.h"   /* for mch_open(), must be before vim.h */
27 + #endif
28
29   #include "vim.h"
30   
31   #if defined(FEAT_NETBEANS_INTG) || defined(PROTO)
32 ***************
33 *** 1974,1986 ****
34         }
35         else if (streq((char *)cmd, "setModified"))
36         {
37             if (buf == NULL || buf->bufp == NULL)
38             {
39   /*            EMSG("E646: null bufp in setModified"); */
40                 return FAIL;
41             }
42             if (streq((char *)args, "T"))
43 !               buf->bufp->b_changed = 1;
44             else
45             {
46                 struct stat     st;
47 --- 1978,1993 ----
48         }
49         else if (streq((char *)cmd, "setModified"))
50         {
51 +           int prev_b_changed;
52
53             if (buf == NULL || buf->bufp == NULL)
54             {
55   /*            EMSG("E646: null bufp in setModified"); */
56                 return FAIL;
57             }
58 +           prev_b_changed = buf->bufp->b_changed;
59             if (streq((char *)args, "T"))
60 !               buf->bufp->b_changed = TRUE;
61             else
62             {
63                 struct stat     st;
64 ***************
65 *** 1990,1998 ****
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;
70             }
71             buf->modified = buf->bufp->b_changed;
72   /* =====================================================================*/
73         }
74         else if (streq((char *)cmd, "setModtime"))
75 --- 1997,2016 ----
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;
80             }
81             buf->modified = buf->bufp->b_changed;
82 +           if (prev_b_changed != buf->bufp->b_changed)
83 +           {
84 + #ifdef FEAT_WINDOWS
85 +               check_status(buf->bufp);
86 +               redraw_tabline = TRUE;
87 + #endif
88 + #ifdef FEAT_TITLE
89 +               maketitle();
90 + #endif
91 +               update_screen(0);
92 +           }
93   /* =====================================================================*/
94         }
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
98 ***************
99 *** 668,669 ****
100 --- 673,676 ----
101   {   /* Add new patch number below this line */
102 + /**/
103 +     313,
104   /**/
105
106 -- 
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.
112
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    ///
This page took 0.038147 seconds and 3 git commands to generate.