diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-20 07:54:14 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-23 17:47:46 +0800 |
commit | ffa1335047047ac00280ac742bcc6dfcc7fa3589 (patch) | |
tree | b71be77bcee6dfb6e3f96f154c2e8a77cdf4170d /src/nvim/runtime.h | |
parent | 42e9fe7d958e0ba025034c330d8e29293d828b60 (diff) | |
download | rneovim-ffa1335047047ac00280ac742bcc6dfcc7fa3589.tar.gz rneovim-ffa1335047047ac00280ac742bcc6dfcc7fa3589.tar.bz2 rneovim-ffa1335047047ac00280ac742bcc6dfcc7fa3589.zip |
vim-patch:8.2.4726: cannot use expand() to get the script name
Problem: Cannot use expand() to get the script name.
Solution: Support expand('<script>'). (closes vim/vim#10121)
https://github.com/vim/vim/commit/6013d0045dec7ca7c0068fbe186c42d754a7368b
Use `.sn_name` instead of `->sn_name` as v8.2.0154 hasn't been ported.
Cherry-pick builtin.txt expand() doc from latest Vim.
Diffstat (limited to 'src/nvim/runtime.h')
-rw-r--r-- | src/nvim/runtime.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/runtime.h b/src/nvim/runtime.h index a255c6c096..03c426c79b 100644 --- a/src/nvim/runtime.h +++ b/src/nvim/runtime.h @@ -47,6 +47,7 @@ typedef enum { ESTACK_NONE, ESTACK_SFILE, ESTACK_STACK, + ESTACK_SCRIPT, } estack_arg_T; typedef struct scriptitem_S { |