To: vim-dev@vim.org Subject: Patch 6.0.107 Fcc: outbox From: Bram Moolenaar MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.0.107 (extra) Problem: VisVim: When editing another file, a modified file may be written unexpectedly and without warning. Solution: Split the window if a file was modified. Files: VisVim/Commands.cpp *** ../vim60.106/VisVim/Commands.cpp Mon Jul 23 22:19:17 2001 --- VisVim/Commands.cpp Sun Dec 30 21:58:33 2001 *************** *** 521,528 **** --- 521,533 ---- VimCmd[1] = 0x0e; VimCmdStart = VimCmd + 2; + #ifdef SINGLE_WINDOW // Update the current file in Vim if it has been modified sprintf (VimCmdStart, ":up\n"); + #else + // Split the window if the current file has been modified + sprintf (VimCmdStart, ":if &mod | split | endif\n"); + #endif if (! VimOle.Method (DispatchId, "s", TO_OLE_STR_BUF (VimCmd, Buf))) goto OleError; *** ../vim60.106/src/version.c Sun Dec 30 21:52:17 2001 --- src/version.c Sun Dec 30 22:26:25 2001 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 107, /**/ -- In war we're tough and able. Quite indefatigable Between our quests We sequin vests And impersonate Clark Gable It's a busy life in Camelot. I have to push the pram a lot. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim ))) \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///