summaryrefslogtreecommitdiff
path: root/src/vim9.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-03-27 16:29:53 +0100
committerBram Moolenaar <Bram@vim.org>2022-03-27 16:29:53 +0100
commitec15b1cfdc5faadb529dedda58adf7fc98c839ed (patch)
treecdcf7ffa3e2ed7de3fc890f6415a0be84ad1e490 /src/vim9.h
parentc75bca3ee955ff36ece99a42041733ddea5f45a7 (diff)
downloadvim-git-ec15b1cfdc5faadb529dedda58adf7fc98c839ed.tar.gz
patch 8.2.4634: Vim9: cannot initialize a variable to null_listv8.2.4634
Problem: Vim9: cannot initialize a variable to null_list. Solution: Give negative count to NEWLIST. (closes #10027) Also fix inconsistencies in comparing with null values.
Diffstat (limited to 'src/vim9.h')
-rw-r--r--src/vim9.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vim9.h b/src/vim9.h
index ed5f67695..60c54d9f5 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -90,7 +90,9 @@ typedef enum {
ISN_PUSHCHANNEL, // push NULL channel
ISN_PUSHJOB, // push NULL job
ISN_NEWLIST, // push list from stack items, size is isn_arg.number
+ // -1 for null_list
ISN_NEWDICT, // push dict from stack items, size is isn_arg.number
+ // -1 for null_dict
ISN_NEWPARTIAL, // push NULL partial
ISN_AUTOLOAD, // get item from autoload import, function or variable