1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: No error message when assigning to a list with an index out of
12 range. (Yukihiro Nakadaira)
13 Solution: Add the error message.
17 *** ../vim-7.3.161/src/eval.c 2011-04-11 21:35:03.000000000 +0200
18 --- src/eval.c 2011-04-21 13:40:38.000000000 +0200
23 if (lp->ll_range && !lp->ll_empty2)
26 + EMSGN(_(e_listidx), lp->ll_n1);
34 ni = list_find(lp->ll_list, lp->ll_n2);
38 + EMSGN(_(e_listidx), lp->ll_n2);
41 lp->ll_n2 = list_idx_of_item(lp->ll_list, ni);
48 lp->ll_n1 = list_idx_of_item(lp->ll_list, lp->ll_li);
49 if (lp->ll_n2 < lp->ll_n1)
52 + EMSGN(_(e_listidx), lp->ll_n2);
57 lp->ll_tv = &lp->ll_li->li_tv;
58 *** ../vim-7.3.161/src/version.c 2011-04-11 21:35:03.000000000 +0200
59 --- src/version.c 2011-04-21 13:44:46.000000000 +0200
63 { /* Add new patch number below this line */
69 Far back in the mists of ancient time, in the great and glorious days of the
70 former Galactic Empire, life was wild, rich and largely tax free.
71 Mighty starships plied their way between exotic suns, seeking adventure and
72 reward among the furthest reaches of Galactic space. In those days, spirits
73 were brave, the stakes were high, men were real men, women were real women
74 and small furry creatures from Alpha Centauri were real small furry creatures
75 from Alpha Centauri. And all dared to brave unknown terrors, to do mighty
76 deeds, to boldly split infinitives that no man had split before -- and thus
77 was the Empire forged.
78 -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
80 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
81 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
82 \\\ an exciting new programming language -- http://www.Zimbu.org ///
83 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///