To: vim-dev@vim.org Subject: Patch 6.1.316 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ 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@Moolenaar.net -- 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 ///