From 4e9f7684f636874e8127f0d018b32f8bc104a29f Mon Sep 17 00:00:00 2001 From: James McCoy Date: Wed, 1 Jun 2016 01:09:13 -0400 Subject: 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. --- src/nvim/ex_docmd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/ex_docmd.h') 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. -- cgit