To: vim-dev@vim.org Subject: Patch 6.1.187 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.187 Problem: Using ":doarg" with 'hidden' set and the current file is the only argument and was modified gives an error message. (Preben Guldberg) Solution: Don't try re-editing the same file. Files: src/ex_cmds2.c *** ../vim61.186/src/ex_cmds2.c Sat Sep 7 17:16:30 2002 --- src/ex_cmds2.c Thu Sep 19 23:48:10 2002 *************** *** 1459,1465 **** /* go to argument "i" */ if (i == ARGCOUNT) break; ! do_argfile(eap, i); if (curwin->w_arg_idx != i) break; ++i; --- 1459,1468 ---- /* go to argument "i" */ if (i == ARGCOUNT) break; ! /* Don't call do_argfile() when already there, it will try ! * reloading the file. */ ! if (curwin->w_arg_idx != i) ! do_argfile(eap, i); if (curwin->w_arg_idx != i) break; ++i; *** ../vim61.186/src/version.c Tue Sep 17 21:36:54 2002 --- src/version.c Fri Sep 20 21:40:52 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 187, /**/ -- hundred-and-one symptoms of being an internet addict: 24. You realize there is not a sound in the house and you have no idea where your children are. /// 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 /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///