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 / 6.0.158 < prev    next >
Encoding:
Internet Message Format  |  2002-01-29  |  1.8 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.158
  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 6.0.158
  11. Problem:    When getting the warning for a file being changed outside of Vim
  12.         and reloading the file, the 'readonly' option is reset, even when
  13.         the permissions didn't change. (Marcel Svitalsky)
  14. Solution:   Keep 'readonly' set when reloading a file and the permissions
  15.         didn't change.
  16. Files:        src/fileio.c
  17.  
  18.  
  19. *** ../vim60.157/src/fileio.c    Wed Jan  2 17:10:11 2002
  20. --- src/fileio.c    Wed Jan 30 20:01:42 2002
  21. ***************
  22. *** 5159,5164 ****
  23. --- 5167,5173 ----
  24.       linenr_T    old_line_count = buf->b_ml.ml_line_count;
  25.       exarg_T        ea;
  26.       pos_T        old_cursor;
  27. +     int        old_ro = curbuf->b_p_ro;
  28.   #ifdef FEAT_AUTOCMD
  29.       aco_save_T    aco;
  30.   
  31. ***************
  32. *** 5205,5210 ****
  33. --- 5214,5224 ----
  34.   #ifdef FEAT_AUTOCMD
  35.           keep_filetype = FALSE;
  36.   #endif
  37. +         /* If the mode didn't change and 'readonly' was set, keep the old
  38. +          * value; the user probably used the ":view" command.  But don't
  39. +          * reset it, might have had a read error. */
  40. +         if (orig_mode == curbuf->b_orig_mode)
  41. +         curbuf->b_p_ro |= old_ro;
  42.       }
  43.   
  44.   #ifdef FEAT_AUTOCMD
  45. *** ../vim60.157/src/version.c    Wed Jan 30 16:52:45 2002
  46. --- src/version.c    Wed Jan 30 20:08:31 2002
  47. ***************
  48. *** 608,609 ****
  49. --- 608,611 ----
  50.   {   /* Add new patch number below this line */
  51. + /**/
  52. +     158,
  53.   /**/
  54.  
  55. -- 
  56. hundred-and-one symptoms of being an internet addict:
  57. 102. When filling out your driver's license application, you give
  58.      your IP address.
  59.  
  60.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  61. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  62.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  63.