To: vim-dev@vim.org Subject: Patch 6.1.212 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.212 Problem: When Vim was started with "-R" ":new" creates a buffer 'noreadonly' while ":enew" has 'readonly' set. (Preben Guldberg) Solution: Don't set 'readonly in a new empty buffer for ":enew". Files: src/ex_docmd.c *** ../vim61.211/src/ex_docmd.c Mon Oct 7 20:48:47 2002 --- src/ex_docmd.c Mon Oct 7 20:34:15 2002 *************** *** 5737,5742 **** --- 5737,5745 ---- n = readonlymode; if (eap->cmdidx == CMD_view || eap->cmdidx == CMD_sview) readonlymode = TRUE; + else if (eap->cmdidx == CMD_enew) + readonlymode = FALSE; /* 'readonly' doesn't make sense in an + empty buffer */ setpcmark(); if (do_ecmd(0, (eap->cmdidx == CMD_enew ? NULL : eap->arg), NULL, eap, *** ../vim61.211/src/version.c Mon Oct 7 20:45:41 2002 --- src/version.c Mon Oct 7 21:34:52 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 212, /**/ -- hundred-and-one symptoms of being an internet addict: 150. You find yourself counting emoticons to get to sleep. /// 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 ///