To: vim-dev@vim.org Subject: Patch 6.1.110 Fcc: outbox From: Bram Moolenaar MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.110 Problem: When using ":badd file" when "file" is already present but not listed, it stays unlisted. (David Frey) Solution: Set 'buflisted'. Files: src/buffer.c *** ../vim61.109/src/buffer.c Sun Jun 23 13:05:10 2002 --- src/buffer.c Wed Jun 12 21:41:21 2002 *************** *** 1247,1252 **** --- 1247,1260 ---- /* copy the options now, if 'cpo' doesn't have 's' and not done * already */ buf_copy_options(buf, 0); + if ((flags & BLN_LISTED) && !buf->b_p_bl) + { + buf->b_p_bl = TRUE; + #ifdef FEAT_AUTOCMD + if (!(flags & BLN_DUMMY)) + apply_autocmds(EVENT_BUFADD, NULL, NULL, FALSE, buf); + #endif + } return buf; } *** ../vim61.109/src/version.c Sun Jun 23 15:04:45 2002 --- src/version.c Sun Jun 23 15:09:22 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 110, /**/ -- Ten million Linux users can't be wrong! /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///