diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-04-01 15:26:58 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-01 15:26:58 +0100 |
commit | 22ebd172e48ba060c8a7bae3dbf6480b7596d937 (patch) | |
tree | ff1a418ba71300eaf1ddd85e37e682b16ade4958 /src/vim.h | |
parent | ffe6e646dc6aede3bce062e40256ce0edc64bc08 (diff) | |
download | vim-git-22ebd172e48ba060c8a7bae3dbf6480b7596d937.tar.gz |
patch 8.2.4662: no error for using out of range list indexv8.2.4662
Problem: No error for using out of range list index.
Solution: Check list index at script level like in compiled function.
(closes #10051)
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2632,6 +2632,7 @@ typedef enum { #define TFN_NO_DECL 0x20 // only used for GLV_NO_DECL #define TFN_COMPILING 0x40 // only used for GLV_COMPILING #define TFN_NEW_FUNC 0x80 // defining a new function +#define TFN_ASSIGN_WITH_OP 0x100 // only for GLV_ASSIGN_WITH_OP // Values for get_lval() flags argument: #define GLV_QUIET TFN_QUIET // no error messages @@ -2639,6 +2640,7 @@ typedef enum { #define GLV_READ_ONLY TFN_READ_ONLY // will not change the var #define GLV_NO_DECL TFN_NO_DECL // assignment without :var or :let #define GLV_COMPILING TFN_COMPILING // variable may be defined later +#define GLV_ASSIGN_WITH_OP TFN_ASSIGN_WITH_OP // assignment with operator #define DO_NOT_FREE_CNT 99999 // refcount for dict or list that should not // be freed. |