0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.3.068

Problem:    Using freed memory when doing ":saveas" and an autocommand sets
            'autochdir'. (Kevin Klement)
Solution:   Get the value of fname again after executing autocommands.
This commit is contained in:
Bram Moolenaar
2010-11-24 17:59:32 +01:00
parent ef2f028a66
commit f666f0e5c0
2 changed files with 6 additions and 0 deletions

View File

@@ -2705,6 +2705,10 @@ do_write(eap)
TRUE);
do_modelines(0);
}
/* Autocommands may have changed buffer names, esp. when
* 'autochdir' is set. */
fname = curbuf->b_sfname;
#endif
}