mirror of
https://github.com/vim/vim.git
synced 2025-11-13 22:54:27 -05:00
patch 8.2.3739: in wrong directory when using win_execute() with 'acd' set
Problem: In wrong directory when using win_execute() with 'acd' set. Solution: Restore the directory when returning to the window. (closes #9276)
This commit is contained in:
@@ -4858,6 +4858,11 @@ win_enter_ext(win_T *wp, int flags)
|
||||
void
|
||||
fix_current_dir(void)
|
||||
{
|
||||
#ifdef FEAT_AUTOCHDIR
|
||||
if (p_acd)
|
||||
do_autochdir();
|
||||
else
|
||||
#endif
|
||||
if (curwin->w_localdir != NULL || curtab->tp_localdir != NULL)
|
||||
{
|
||||
char_u *dirname;
|
||||
|
||||
Reference in New Issue
Block a user