home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.1 / 7.1.313 < prev    next >
Encoding:
Internet Message Format  |  2008-06-08  |  3.3 KB

  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.   #include "vim.h"
  29.   
  30.   #if defined(FEAT_NETBEANS_INTG) || defined(PROTO)
  31. ***************
  32. *** 1974,1986 ****
  33.       }
  34.       else if (streq((char *)cmd, "setModified"))
  35.       {
  36.           if (buf == NULL || buf->bufp == NULL)
  37.           {
  38.   /*        EMSG("E646: null bufp in setModified"); */
  39.           return FAIL;
  40.           }
  41.           if (streq((char *)args, "T"))
  42. !         buf->bufp->b_changed = 1;
  43.           else
  44.           {
  45.           struct stat    st;
  46. --- 1978,1993 ----
  47.       }
  48.       else if (streq((char *)cmd, "setModified"))
  49.       {
  50. +         int prev_b_changed;
  51.           if (buf == NULL || buf->bufp == NULL)
  52.           {
  53.   /*        EMSG("E646: null bufp in setModified"); */
  54.           return FAIL;
  55.           }
  56. +         prev_b_changed = buf->bufp->b_changed;
  57.           if (streq((char *)args, "T"))
  58. !         buf->bufp->b_changed = TRUE;
  59.           else
  60.           {
  61.           struct stat    st;
  62. ***************
  63. *** 1990,1998 ****
  64.           if (buf->bufp->b_ffname != NULL
  65.               && mch_stat((char *)buf->bufp->b_ffname, &st) >= 0)
  66.               buf_store_time(buf->bufp, &st, buf->bufp->b_ffname);
  67. !         buf->bufp->b_changed = 0;
  68.           }
  69.           buf->modified = buf->bufp->b_changed;
  70.   /* =====================================================================*/
  71.       }
  72.       else if (streq((char *)cmd, "setModtime"))
  73. --- 1997,2016 ----
  74.           if (buf->bufp->b_ffname != NULL
  75.               && mch_stat((char *)buf->bufp->b_ffname, &st) >= 0)
  76.               buf_store_time(buf->bufp, &st, buf->bufp->b_ffname);
  77. !         buf->bufp->b_changed = FALSE;
  78.           }
  79.           buf->modified = buf->bufp->b_changed;
  80. +         if (prev_b_changed != buf->bufp->b_changed)
  81. +         {
  82. + #ifdef FEAT_WINDOWS
  83. +         check_status(buf->bufp);
  84. +         redraw_tabline = TRUE;
  85. + #endif
  86. + #ifdef FEAT_TITLE
  87. +         maketitle();
  88. + #endif
  89. +         update_screen(0);
  90. +         }
  91.   /* =====================================================================*/
  92.       }
  93.       else if (streq((char *)cmd, "setModtime"))
  94. *** ../vim-7.1.312/src/version.c    Mon Jun  9 14:45:17 2008
  95. --- src/version.c    Mon Jun  9 15:08:40 2008
  96. ***************
  97. *** 668,669 ****
  98. --- 673,676 ----
  99.   {   /* Add new patch number below this line */
  100. + /**/
  101. +     313,
  102.   /**/
  103.  
  104. -- 
  105. Q: What is the difference betwee open-source and commercial software?
  106. A: If you have a problem with commercial software you can call a phone
  107.    number and they will tell you it might be solved in a future version.
  108.    For open-source software there isn't a phone number to call, but you
  109.    get the solution within a day.
  110.  
  111.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  112. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  113. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  114.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  115.