Loading ...
Sorry, an error occurred while loading the content.

Patch 6.1.316

Expand Messages
  • Bram Moolenaar
    Patch 6.1.316 Problem: When exiting with wq and there is a hidden buffer, after the file changed dialog there is a warning for a changed buffer. (Ajit
    Message 1 of 1 , Feb 2, 2003
    • 0 Attachment
      Patch 6.1.316
      Problem: When exiting with "wq" and there is a hidden buffer, after the
      "file changed" dialog there is a warning for a changed buffer.
      (Ajit Thakkar)
      Solution: Do update the buffer timestamps when exiting.
      Files: src/fileio.c


      *** ../vim61.315/src/fileio.c Wed Jan 29 22:08:43 2003
      --- src/fileio.c Sat Feb 1 18:58:10 2003
      ***************
      *** 2519,2525 ****
      msg_scroll = msg_save;
      if (did_cmd)
      {
      ! if (!exiting && overwriting)
      {
      /* Assume the buffer was written, update the timestamp. */
      ml_timestamp(buf);
      --- 2519,2525 ----
      msg_scroll = msg_save;
      if (did_cmd)
      {
      ! if (overwriting)
      {
      /* Assume the buffer was written, update the timestamp. */
      ml_timestamp(buf);
      ***************
      *** 3793,3799 ****
      * If written to the current file, update the timestamp of the swap file
      * and reset the BF_WRITE_MASK flags. Also sets buf->b_mtime.
      */
      ! if (!exiting && overwriting)
      {
      ml_timestamp(buf);
      buf->b_flags &= ~BF_WRITE_MASK;
      --- 3793,3799 ----
      * If written to the current file, update the timestamp of the swap file
      * and reset the BF_WRITE_MASK flags. Also sets buf->b_mtime.
      */
      ! if (overwriting)
      {
      ml_timestamp(buf);
      buf->b_flags &= ~BF_WRITE_MASK;
      *** ../vim61.315/src/version.c Sat Feb 1 18:48:57 2003
      --- src/version.c Sun Feb 2 13:39:09 2003
      ***************
      *** 608,609 ****
      --- 608,611 ----
      { /* Add new patch number below this line */
      + /**/
      + 316,
      /**/

      --
      From "know your smileys":
      |-( Contact lenses, but has lost them

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
      \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
      \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
    Your message has been successfully submitted and would be delivered to recipients shortly.