Mercurial > vim
diff src/proto/eval.pro @ 21826:ccad66ac6c3e v8.2.1462
patch 8.2.1462: Vim9: string slice not supported yet
Commit: https://github.com/vim/vim/commit/11107bab7ead9124f46a7ddf6aa3bb66b43a8246
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 15 21:10:16 2020 +0200
patch 8.2.1462: Vim9: string slice not supported yet
Problem: Vim9: string slice not supported yet.
Solution: Add support for string slicing.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 15 Aug 2020 21:15:04 +0200 |
parents | b1f3d8a44ab6 |
children | e3f9528bddda |
line wrap: on
line diff
--- a/src/proto/eval.pro +++ b/src/proto/eval.pro @@ -60,6 +60,7 @@ int eval_isnamec(int c); int eval_isnamec1(int c); int eval_isdictc(int c); 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 handle_subscript(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int verbose); int item_copy(typval_T *from, typval_T *to, int deep, int copyID); void echo_one(typval_T *rettv, int with_space, int *atstart, int *needclr);