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:
@@ -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
|
||||
}
|
||||
|
||||
|
@@ -714,6 +714,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
68,
|
||||
/**/
|
||||
67,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user