Mercurial > vim
comparison src/list.c @ 21833:e3f9528bddda v8.2.1466
patch 8.2.1466: Vim9: cannot index or slice a variable with type "any"
Commit: https://github.com/vim/vim/commit/cc673e746ab98566556ff964d7a76f2fb46d7f84
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 16 17:33:35 2020 +0200
patch 8.2.1466: Vim9: cannot index or slice a variable with type "any"
Problem: Vim9: cannot index or slice a variable with type "any".
Solution: Add runtime index and slice.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 16 Aug 2020 17:45:22 +0200 |
parents | d8422de73113 |
children | a211bca98bc3 |
comparison
equal
deleted
inserted
replaced
21832:6bc6328af5f0 | 21833:e3f9528bddda |
---|---|
912 { | 912 { |
913 if (verbose) | 913 if (verbose) |
914 semsg(_(e_listidx), n1); | 914 semsg(_(e_listidx), n1); |
915 return FAIL; | 915 return FAIL; |
916 } | 916 } |
917 n1 = len; | 917 n1 = n1 < 0 ? 0 : len; |
918 } | 918 } |
919 if (range) | 919 if (range) |
920 { | 920 { |
921 list_T *l; | 921 list_T *l; |
922 | 922 |