diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-05-11 10:08:09 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-05-11 10:08:09 +0200 |
commit | 273d2cd5d5cfc7616c76d3531e9938750abcc05e (patch) | |
tree | 0783f4e14c18bd0af586f83842e8a238eb1c1e1a /src/nvim/globals.h | |
parent | 8d40b3617c8bb10af5d4d4abcab0dfe77a4e807d (diff) | |
parent | e31d8ed36a78706cdaa6307cb37ea6a102c5e2f7 (diff) | |
download | rneovim-273d2cd5d5cfc7616c76d3531e9938750abcc05e.tar.gz rneovim-273d2cd5d5cfc7616c76d3531e9938750abcc05e.tar.bz2 rneovim-273d2cd5d5cfc7616c76d3531e9938750abcc05e.zip |
Merge #8329 'API: Make nvim_set_option() update `:verbose set …`'
Diffstat (limited to 'src/nvim/globals.h')
-rw-r--r-- | src/nvim/globals.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h index 8a2769618e..ddc58c2425 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -390,16 +390,20 @@ EXTERN int may_garbage_collect INIT(= FALSE); EXTERN int want_garbage_collect INIT(= FALSE); EXTERN int garbage_collect_at_exit INIT(= FALSE); -/* Special values for current_SID. */ -#define SID_MODELINE -1 /* when using a modeline */ -#define SID_CMDARG -2 /* for "--cmd" argument */ -#define SID_CARG -3 /* for "-c" argument */ -#define SID_ENV -4 /* for sourcing environment variable */ -#define SID_ERROR -5 /* option was reset because of an error */ -#define SID_NONE -6 /* don't set scriptID */ - -/* ID of script being sourced or was sourced to define the current function. */ +// Special values for current_SID. +#define SID_MODELINE -1 // when using a modeline +#define SID_CMDARG -2 // for "--cmd" argument +#define SID_CARG -3 // for "-c" argument +#define SID_ENV -4 // for sourcing environment variable +#define SID_ERROR -5 // option was reset because of an error +#define SID_NONE -6 // don't set scriptID +#define SID_LUA -7 // for Lua scripts/chunks +#define SID_API_CLIENT -8 // for API clients + +// ID of script being sourced or was sourced to define the current function. EXTERN scid_T current_SID INIT(= 0); +// ID of the current channel making a client API call +EXTERN uint64_t current_channel_id INIT(= 0); EXTERN bool did_source_packages INIT(= false); |