mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.1247: Vim9: cannot index a character in a string
Problem: Vim9: cannot index a character in a string. Solution: Add ISN_STRINDEX instruction. (closes #6478)
This commit is contained in:
@@ -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]
|
||||
|
Reference in New Issue
Block a user