mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -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);
|
TRUE);
|
||||||
do_modelines(0);
|
do_modelines(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Autocommands may have changed buffer names, esp. when
|
||||||
|
* 'autochdir' is set. */
|
||||||
|
fname = curbuf->b_sfname;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
68,
|
||||||
/**/
|
/**/
|
||||||
67,
|
67,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user