4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: With a BufHidden autocommand that invokes ":bunload" the window
12 count for a buffer can be wrong. (Bob Hiestand)
13 Solution: Don't call enter_buffer() when already in that buffer.
17 *** ../vim-7.2.007/src/buffer.c Wed Aug 6 18:32:40 2008
18 --- src/buffer.c Mon Sep 1 14:25:45 2008
25 ! /* An autocommand may have deleted buf or aborted the script processing! */
26 ! if (buf_valid(buf) && !aborting())
28 ! if (buf_valid(buf)) /* an autocommand may have deleted buf! */
36 + /* An autocommand may have deleted "buf", already entered it (e.g., when
37 + * it did ":bunload") or aborted the script processing! */
39 ! if (buf_valid(buf) && buf != curbuf && !aborting())
41 ! if (buf_valid(buf) && buf != curbuf)
45 *** ../vim-7.2.007/src/version.c Mon Sep 1 16:50:09 2008
46 --- src/version.c Mon Sep 1 17:31:28 2008
50 { /* Add new patch number below this line */
56 If Pacman had affected us as kids we'd be running around in dark rooms,
57 munching pills and listening to repetitive music.
60 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
61 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
62 \\\ download, build and distribute -- http://www.A-A-P.org ///
63 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///