diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-19 17:55:44 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-19 17:55:44 +0200 |
commit | bf9d8c3765a5255c0a0b577ca2e25d70a8bcb688 (patch) | |
tree | d2f055157a14c8ddb1ff107379f04bba156f87b2 /src/vim9.h | |
parent | b209750b5e907003568c20856215122670ee22d2 (diff) | |
download | vim-git-bf9d8c3765a5255c0a0b577ca2e25d70a8bcb688.tar.gz |
patch 8.2.1247: Vim9: cannot index a character in a stringv8.2.1247
Problem: Vim9: cannot index a character in a string.
Solution: Add ISN_STRINDEX instruction. (closes #6478)
Diffstat (limited to 'src/vim9.h')
-rw-r--r-- | src/vim9.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vim9.h b/src/vim9.h index 10f983ca9..39d36f973 100644 --- a/src/vim9.h +++ b/src/vim9.h @@ -111,7 +111,8 @@ typedef enum { // expression operations ISN_CONCAT, - ISN_INDEX, // [expr] list index + ISN_STRINDEX, // [expr] string index + ISN_LISTINDEX, // [expr] list index ISN_SLICE, // drop isn_arg.number items from start of list ISN_GETITEM, // push list item, isn_arg.number is the index ISN_MEMBER, // dict[member] |