diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2017-01-16 13:36:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-16 13:36:16 +0100 |
commit | 340f79b4b8f1021f4a3b88265ced2ce39d0e2e03 (patch) | |
tree | 71509fab0581f8454272493e38fd0018a32c3c5f /src/nvim/globals.h | |
parent | fa94c4c2d917b70df443ba0ebcd87da35dc1bb30 (diff) | |
parent | 1f7a119f5efc13fbce6446bf268c2e0f9d753147 (diff) | |
download | rneovim-340f79b4b8f1021f4a3b88265ced2ce39d0e2e03.tar.gz rneovim-340f79b4b8f1021f4a3b88265ced2ce39d0e2e03.tar.bz2 rneovim-340f79b4b8f1021f4a3b88265ced2ce39d0e2e03.zip |
Merge #5928 'New event: DirChanged'
Diffstat (limited to 'src/nvim/globals.h')
-rw-r--r-- | src/nvim/globals.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h index 463f4fcd8d..e3c84cb852 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -1249,4 +1249,20 @@ typedef enum { kBroken } WorkingStatus; +/// The scope of a working-directory command like `:cd`. +/// +/// Scopes are enumerated from lowest to highest. When adding a scope make sure +/// to update all functions using scopes as well, such as the implementation of +/// `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. +} CdScope; + +#define MIN_CD_SCOPE kCdScopeWindow +#define MAX_CD_SCOPE kCdScopeGlobal + #endif /* NVIM_GLOBALS_H */ |