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.1.108 < prev    next >
Encoding:
Internet Message Format  |  2002-06-22  |  2.4 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.108
  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.1.108
  11. Problem:    When interrupting a filter command such as "!!sleep 20" the file
  12.         becomes read-only. (Mark Brader)
  13. Solution:   Only set the read-only flag when opening a buffer is interrupted.
  14.         When the shell command was interrupted, read the output that was
  15.         produced so far.
  16. Files:        src/ex_cmds.c, src/fileio.c
  17.  
  18.  
  19. *** ../vim61.107/src/ex_cmds.c    Mon May 20 21:53:16 2002
  20. --- src/ex_cmds.c    Sat Jun 15 12:12:51 2002
  21. ***************
  22. *** 842,847 ****
  23. --- 842,853 ----
  24.       did_check_timestamps = FALSE;
  25.       need_check_timestamps = TRUE;
  26.   
  27. +     /* When interrupting the shell command, it may still have produced some
  28. +      * useful output.  Reset got_int here, so that readfile() won't cancel
  29. +      * reading. */
  30. +     ui_breakcheck();
  31. +     got_int = FALSE;
  32.       if (do_out)
  33.       {
  34.       if (u_save((linenr_T)(line2), (linenr_T)(line2 + 1)) == FAIL)
  35. *** ../vim61.107/src/fileio.c    Fri May 17 10:21:40 2002
  36. --- src/fileio.c    Fri Jun 14 22:34:24 2002
  37. ***************
  38. *** 1734,1740 ****
  39.           if (!(flags & READ_DUMMY))
  40.           {
  41.           filemess(curbuf, sfname, (char_u *)_(e_interr), 0);
  42. !         curbuf->b_p_ro = TRUE;    /* must use "w!" now */
  43.           }
  44.           msg_scroll = msg_save;
  45.   #ifdef FEAT_VIMINFO
  46. --- 1734,1741 ----
  47.           if (!(flags & READ_DUMMY))
  48.           {
  49.           filemess(curbuf, sfname, (char_u *)_(e_interr), 0);
  50. !         if (newfile)
  51. !             curbuf->b_p_ro = TRUE;    /* must use "w!" now */
  52.           }
  53.           msg_scroll = msg_save;
  54.   #ifdef FEAT_VIMINFO
  55. *** ../vim61.107/src/version.c    Sun Jun 23 14:43:12 2002
  56. --- src/version.c    Sun Jun 23 14:59:23 2002
  57. ***************
  58. *** 608,609 ****
  59. --- 608,611 ----
  60.   {   /* Add new patch number below this line */
  61. + /**/
  62. +     108,
  63.   /**/
  64.  
  65. -- 
  66. DINGO:   You must spank her well and after you have spanked her you
  67.          may deal with her as you like and then ... spank me.
  68. AMAZING: And spank me!
  69. STUNNER: And me.
  70. LOVELY:  And me.
  71.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  72.  
  73.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  74. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  75. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  76.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  77.