mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 01:08:20 +00:00
tcd: Determine correct scope from user input
If a user specifies both {window} and {tab}, `getcwd()`/`haslocaldir()` are using "tab" as the scope that should be reported. However, it should be using "window" as the scope, within the specified tab page.
This commit is contained in:
@@ -6865,6 +6865,9 @@ void post_chdir(CdScope scope)
|
||||
curwin->w_localdir = vim_strsave(NameBuff);
|
||||
}
|
||||
break;
|
||||
case kCdScopeInvalid:
|
||||
// We should never get here
|
||||
assert(false);
|
||||
}
|
||||
|
||||
shorten_fnames(TRUE);
|
||||
|
Reference in New Issue
Block a user