diff options
| author | b-r-o-c-k <brockmammen@gmail.com> | 2018-04-29 21:02:17 -0500 |
|---|---|---|
| committer | b-r-o-c-k <brockmammen@gmail.com> | 2018-05-03 21:05:20 -0500 |
| commit | 7170de19714acd5efa6979ef94de2a29e41d6173 (patch) | |
| tree | aef99101c9b9926704fdc0ec59ee7102af26631e /src/nvim/globals.h | |
| parent | 4744142fad9209a1adaa190b9bf16ddcbcb67ca9 (diff) | |
| download | rneovim-7170de19714acd5efa6979ef94de2a29e41d6173.tar.gz rneovim-7170de19714acd5efa6979ef94de2a29e41d6173.tar.bz2 rneovim-7170de19714acd5efa6979ef94de2a29e41d6173.zip | |
api: Make nvim_set_option() update `:verbose set ...`
Make `:verbose set ...` show when an option was last modified by an
API client or Lua script/chunk. In the case of an API client, the
channel ID is displayed.
Diffstat (limited to 'src/nvim/globals.h')
| -rw-r--r-- | src/nvim/globals.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h index e02100e933..1d49d6d26c 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -397,9 +397,13 @@ EXTERN int garbage_collect_at_exit INIT(= FALSE); #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); |