aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/runtime.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-14 07:07:32 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-08-15 10:14:53 +0800
commited65724e57d2af13cedc380ecfe4a495dae3afb7 (patch)
tree377f8659f94e379c12e3db944680375aeed2ef3c /src/nvim/runtime.h
parent98ab0bb5f7d2138be0b6019769e237e42aafad1a (diff)
downloadrneovim-ed65724e57d2af13cedc380ecfe4a495dae3afb7.tar.gz
rneovim-ed65724e57d2af13cedc380ecfe4a495dae3afb7.tar.bz2
rneovim-ed65724e57d2af13cedc380ecfe4a495dae3afb7.zip
vim-patch:8.2.1653: expand('<stack>') does not include the final line number
Problem: Expand('<stack>') does not include the final line number. Solution: Add the line nuber. (closes vim/vim#6927) https://github.com/vim/vim/commit/4f25b1aba050b85fa97ca2316aa04dd4b0b22530
Diffstat (limited to 'src/nvim/runtime.h')
-rw-r--r--src/nvim/runtime.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/runtime.h b/src/nvim/runtime.h
index 6f9f31c9c4..a255c6c096 100644
--- a/src/nvim/runtime.h
+++ b/src/nvim/runtime.h
@@ -42,6 +42,13 @@ extern garray_T exestack;
/// line number in the message source or zero
#define SOURCING_LNUM (((estack_T *)exestack.ga_data)[exestack.ga_len - 1].es_lnum)
+/// Argument for estack_sfile().
+typedef enum {
+ ESTACK_NONE,
+ ESTACK_SFILE,
+ ESTACK_STACK,
+} estack_arg_T;
+
typedef struct scriptitem_S {
char_u *sn_name;
bool sn_prof_on; ///< true when script is/was profiled