diff options
author | Vikram Pal <vikrampal659@gmail.com> | 2019-10-05 20:07:27 +0530 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-12-01 16:09:24 -0800 |
commit | 0a8d145075d3ce5fffe2df190992f624ae931809 (patch) | |
tree | aa786f290d8d0b07730b334f53fabaa7ad67c058 /src/nvim/globals.h | |
parent | 6aa03e86da041284b5f27a59f73cef0991fc577e (diff) | |
download | rneovim-0a8d145075d3ce5fffe2df190992f624ae931809.tar.gz rneovim-0a8d145075d3ce5fffe2df190992f624ae931809.tar.bz2 rneovim-0a8d145075d3ce5fffe2df190992f624ae931809.zip |
API: nvim_source: save/restore script context #11159
Use a constant for the script id.
Diffstat (limited to 'src/nvim/globals.h')
-rw-r--r-- | src/nvim/globals.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h index 15ad6d8767..172c190df2 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -331,6 +331,7 @@ EXTERN int garbage_collect_at_exit INIT(= false); #define SID_NONE -6 // don't set scriptID #define SID_LUA -7 // for Lua scripts/chunks #define SID_API_CLIENT -8 // for API clients +#define SID_STR -9 // for sourcing a string // Script CTX being sourced or was sourced to define the current function. EXTERN sctx_T current_sctx INIT(= { 0 COMMA 0 COMMA 0 }); |