Mercurial > vim
comparison src/window.c @ 27976:d265246e6628 v8.2.4513
patch 8.2.4513: window-local directory is not applied if 'acd' fails
Commit: https://github.com/vim/vim/commit/b29ae159777028bb3266835b55716749ab0515be
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sat Mar 5 17:00:31 2022 +0000
patch 8.2.4513: window-local directory is not applied if 'acd' fails
Problem: Window-local directory is not applied if 'acd' fails.
Solution: Don't call do_autochdir(). (closes https://github.com/vim/vim/issues/9891)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 05 Mar 2022 18:15:02 +0100 |
parents | d1af65b322d0 |
children | a52a5e3363c4 |
comparison
equal
deleted
inserted
replaced
27975:6c7a0523dc73 | 27976:d265246e6628 |
---|---|
4770 * needed. | 4770 * needed. |
4771 */ | 4771 */ |
4772 static void | 4772 static void |
4773 fix_current_dir(void) | 4773 fix_current_dir(void) |
4774 { | 4774 { |
4775 #ifdef FEAT_AUTOCHDIR | |
4776 if (p_acd) | |
4777 do_autochdir(); | |
4778 else | |
4779 #endif | |
4780 if (curwin->w_localdir != NULL || curtab->tp_localdir != NULL) | 4775 if (curwin->w_localdir != NULL || curtab->tp_localdir != NULL) |
4781 { | 4776 { |
4782 char_u *dirname; | 4777 char_u *dirname; |
4783 | 4778 |
4784 // Window or tab has a local directory: Save current directory as | 4779 // Window or tab has a local directory: Save current directory as |