aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.h
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-06-01 01:09:13 -0400
committerJames McCoy <jamessan@jamessan.com>2016-06-01 07:02:31 -0400
commit4e9f7684f636874e8127f0d018b32f8bc104a29f (patch)
tree79c989af3891af57dbf2c54eec2436a62ac88579 /src/nvim/ex_docmd.h
parentf735ee90c263c5a0433fbd49a8589b71fa3e07ae (diff)
downloadrneovim-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.h')
-rw-r--r--src/nvim/ex_docmd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/ex_docmd.h b/src/nvim/ex_docmd.h
index dbfc64e2f1..bafad20169 100644
--- a/src/nvim/ex_docmd.h
+++ b/src/nvim/ex_docmd.h
@@ -26,6 +26,7 @@
/// `getcwd()`. When using scopes as limits (e.g. in loops) don't use the scopes
/// directly, use `MIN_CD_SCOPE` and `MAX_CD_SCOPE` instead.
typedef enum {
+ kCdScopeInvalid = -1,
kCdScopeWindow, ///< Affects one window.
kCdScopeTab, ///< Affects one tab page.
kCdScopeGlobal, ///< Affects the entire instance of Neovim.