Mercurial > vim
comparison src/proto/list.pro @ 29986:0ad8b72af148 v9.0.0331
patch 9.0.0331: cannot use items() on a string
Commit: https://github.com/vim/vim/commit/3e518a8ec74065aedd67d352c93d6ae6be550316
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 17:45:33 2022 +0100
patch 9.0.0331: cannot use items() on a string
Problem: Cannot use items() on a string.
Solution: Make items() work on a string. (closes https://github.com/vim/vim/issues/11016)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 30 Aug 2022 19:00:03 +0200 |
parents | 34151eb6ae25 |
children | b3de17181c19 |
comparison
equal
deleted
inserted
replaced
29985:2860987502c1 | 29986:0ad8b72af148 |
---|---|
34 int check_range_index_two(list_T *l, long *n1, listitem_T *li1, long *n2, int quiet); | 34 int check_range_index_two(list_T *l, long *n1, listitem_T *li1, long *n2, int quiet); |
35 int list_assign_range(list_T *dest, list_T *src, long idx1_arg, long idx2, int empty_idx2, char_u *op, char_u *varname); | 35 int list_assign_range(list_T *dest, list_T *src, long idx1_arg, long idx2, int empty_idx2, char_u *op, char_u *varname); |
36 void f_flatten(typval_T *argvars, typval_T *rettv); | 36 void f_flatten(typval_T *argvars, typval_T *rettv); |
37 void f_flattennew(typval_T *argvars, typval_T *rettv); | 37 void f_flattennew(typval_T *argvars, typval_T *rettv); |
38 void list2items(typval_T *argvars, typval_T *rettv); | 38 void list2items(typval_T *argvars, typval_T *rettv); |
39 void string2items(typval_T *argvars, typval_T *rettv); | |
39 int list_extend(list_T *l1, list_T *l2, listitem_T *bef); | 40 int list_extend(list_T *l1, list_T *l2, listitem_T *bef); |
40 int list_concat(list_T *l1, list_T *l2, typval_T *tv); | 41 int list_concat(list_T *l1, list_T *l2, typval_T *tv); |
41 list_T *list_slice(list_T *ol, long n1, long n2); | 42 list_T *list_slice(list_T *ol, long n1, long n2); |
42 int list_slice_or_index(list_T *list, int range, varnumber_T n1_arg, varnumber_T n2_arg, int exclusive, typval_T *rettv, int verbose); | 43 int list_slice_or_index(list_T *list, int range, varnumber_T n1_arg, varnumber_T n2_arg, int exclusive, typval_T *rettv, int verbose); |
43 list_T *list_copy(list_T *orig, int deep, int top, int copyID); | 44 list_T *list_copy(list_T *orig, int deep, int top, int copyID); |