Mercurial > vim
comparison src/evalfunc.c @ 23604:1816ea68c022 v8.2.2344
patch 8.2.2344: using inclusive index for slice is not always desired
Commit: https://github.com/vim/vim/commit/6601b62943a19d4f8818c3638440663d67a17b6a
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 13 21:47:15 2021 +0100
patch 8.2.2344: using inclusive index for slice is not always desired
Problem: Using inclusive index for slice is not always desired.
Solution: Add the slice() method, which has an exclusive index. (closes
#7408)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 13 Jan 2021 22:00:04 +0100 |
parents | 7b3317e959e3 |
children | 8dcb2255ff9a |
comparison
equal
deleted
inserted
replaced
23603:483d395694b0 | 23604:1816ea68c022 |
---|---|
1498 ret_string, f_simplify}, | 1498 ret_string, f_simplify}, |
1499 {"sin", 1, 1, FEARG_1, NULL, | 1499 {"sin", 1, 1, FEARG_1, NULL, |
1500 ret_float, FLOAT_FUNC(f_sin)}, | 1500 ret_float, FLOAT_FUNC(f_sin)}, |
1501 {"sinh", 1, 1, FEARG_1, NULL, | 1501 {"sinh", 1, 1, FEARG_1, NULL, |
1502 ret_float, FLOAT_FUNC(f_sinh)}, | 1502 ret_float, FLOAT_FUNC(f_sinh)}, |
1503 {"slice", 2, 3, FEARG_1, NULL, | |
1504 ret_first_arg, f_slice}, | |
1503 {"sort", 1, 3, FEARG_1, NULL, | 1505 {"sort", 1, 3, FEARG_1, NULL, |
1504 ret_first_arg, f_sort}, | 1506 ret_first_arg, f_sort}, |
1505 {"sound_clear", 0, 0, 0, NULL, | 1507 {"sound_clear", 0, 0, 0, NULL, |
1506 ret_void, SOUND_FUNC(f_sound_clear)}, | 1508 ret_void, SOUND_FUNC(f_sound_clear)}, |
1507 {"sound_playevent", 1, 2, FEARG_1, NULL, | 1509 {"sound_playevent", 1, 2, FEARG_1, NULL, |