diff options
author | James McCoy <jamessan@jamessan.com> | 2016-06-01 01:09:13 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2016-06-01 07:02:31 -0400 |
commit | 4e9f7684f636874e8127f0d018b32f8bc104a29f (patch) | |
tree | 79c989af3891af57dbf2c54eec2436a62ac88579 /src/nvim/ex_docmd.c | |
parent | f735ee90c263c5a0433fbd49a8589b71fa3e07ae (diff) | |
download | rneovim-4e9f7684f636874e8127f0d018b32f8bc104a29f.tar.gz rneovim-4e9f7684f636874e8127f0d018b32f8bc104a29f.tar.bz2 rneovim-4e9f7684f636874e8127f0d018b32f8bc104a29f.zip |
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.
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index dd096af6b3..dea52ee112 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -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); |