Mercurial > vim
diff src/proto/vim9execute.pro @ 23551:1bb7fa4f9b35 v8.2.2318
patch 8.2.2318: Vim9: string and list index work differently
Commit: https://github.com/vim/vim/commit/e7525c552060dd04aacdbca6bb5fe6460cf4da60
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 9 13:20:37 2021 +0100
patch 8.2.2318: Vim9: string and list index work differently
Problem: Vim9: string and list index work differently.
Solution: Make string index work like list index. (closes https://github.com/vim/vim/issues/7643)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 09 Jan 2021 13:30:04 +0100 |
parents | 112fa621b127 |
children | 1816ea68c022 |
line wrap: on
line diff
--- a/src/proto/vim9execute.pro +++ b/src/proto/vim9execute.pro @@ -1,6 +1,8 @@ /* vim9execute.c */ void to_string_error(vartype_T vartype); void funcstack_check_refcount(funcstack_T *funcstack); +char_u *char_from_string(char_u *str, varnumber_T index); +char_u *string_slice(char_u *str, varnumber_T first, varnumber_T last); int fill_partial_and_closure(partial_T *pt, ufunc_T *ufunc, ectx_T *ectx); int call_def_function(ufunc_T *ufunc, int argc_arg, typval_T *argv, partial_T *partial, typval_T *rettv); void ex_disassemble(exarg_T *eap);