diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-15 22:14:53 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-15 22:14:53 +0200 |
commit | ed5918771fcf9877d8445e74c62ab1ce6b8e28c1 (patch) | |
tree | 6b2c25678e1d0b606ad7e6b82d2d6528b6b86be8 /src/proto | |
parent | 11107bab7ead9124f46a7ddf6aa3bb66b43a8246 (diff) | |
download | vim-git-ed5918771fcf9877d8445e74c62ab1ce6b8e28c1.tar.gz |
patch 8.2.1463: Vim9: list slice not supported yetv8.2.1463
Problem: Vim9: list slice not supported yet.
Solution: Add support for list slicing.
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/list.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/list.pro b/src/proto/list.pro index 53502ae72..5a2feea2e 100644 --- a/src/proto/list.pro +++ b/src/proto/list.pro @@ -34,6 +34,7 @@ void f_flatten(typval_T *argvars, typval_T *rettv); int list_extend(list_T *l1, list_T *l2, listitem_T *bef); int list_concat(list_T *l1, list_T *l2, typval_T *tv); list_T *list_slice(list_T *ol, long n1, long n2); +int list_slice_or_index(list_T *list, int range, long n1_arg, long n2_arg, typval_T *rettv, int verbose); list_T *list_copy(list_T *orig, int deep, int copyID); void vimlist_remove(list_T *l, listitem_T *item, listitem_T *item2); char_u *list2string(typval_T *tv, int copyID, int restore_copyID); |