1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Using freed memory when doing ":saveas" and an autocommand sets
12 'autochdir'. (Kevin Klement)
13 Solution: Get the value of fname again after executing autocommands.
17 *** ../vim-7.3.067/src/ex_cmds.c 2010-10-15 20:20:00.000000000 +0200
18 --- src/ex_cmds.c 2010-11-24 17:53:07.000000000 +0100
26 + /* Autocommands may have changed buffer names, esp. when
27 + * 'autochdir' is set. */
28 + fname = curbuf->b_sfname;
32 *** ../vim-7.3.067/src/version.c 2010-11-24 17:03:34.000000000 +0100
33 --- src/version.c 2010-11-24 17:55:11.000000000 +0100
37 { /* Add new patch number below this line */
43 I used to wonder about the meaning of life. But I looked it
44 up in the dictionary under "L" and there it was - the meaning
45 of life. It was less than I expected. - Dogbert
47 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
48 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
49 \\\ an exciting new programming language -- http://www.Zimbu.org ///
50 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///