4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: BufWipeout autocommand that edits another buffer causes problems.
12 Solution: Check for the situation, give an error and quit the operation.
16 *** ../vim-7.2.201/src/fileio.c 2009-05-16 17:29:37.000000000 +0200
17 --- src/fileio.c 2009-06-11 21:22:37.000000000 +0200
24 + buf_T *buf = curbuf;
26 /* It's like the unnamed buffer is deleted.... */
28 apply_autocmds(EVENT_BUFDELETE, NULL, NULL, FALSE, curbuf);
32 if (aborting()) /* autocmds may abort script processing */
37 + /* We are in another buffer now, don't do the renaming. */
38 + EMSG(_(e_auchangedbuf));
43 if (setfname(curbuf, fname, sfname, FALSE) == OK)
44 *** ../vim-7.2.201/src/version.c 2009-06-16 15:23:07.000000000 +0200
45 --- src/version.c 2009-06-16 15:28:31.000000000 +0200
49 { /* Add new patch number below this line */
55 How To Keep A Healthy Level Of Insanity:
56 14. Put mosquito netting around your work area. Play a tape of jungle
59 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
60 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
61 \\\ download, build and distribute -- http://www.A-A-P.org ///
62 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///