|
Karsten Hopp |
f36da1 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
f36da1 |
Subject: Patch 7.3.162
|
|
Karsten Hopp |
f36da1 |
Fcc: outbox
|
|
Karsten Hopp |
f36da1 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
f36da1 |
Mime-Version: 1.0
|
|
Karsten Hopp |
f36da1 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
f36da1 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
f36da1 |
------------
|
|
Karsten Hopp |
f36da1 |
|
|
Karsten Hopp |
f36da1 |
Patch 7.3.162
|
|
Karsten Hopp |
f36da1 |
Problem: No error message when assigning to a list with an index out of
|
|
Karsten Hopp |
f36da1 |
range. (Yukihiro Nakadaira)
|
|
Karsten Hopp |
f36da1 |
Solution: Add the error message.
|
|
Karsten Hopp |
f36da1 |
Files: src/eval.c
|
|
Karsten Hopp |
f36da1 |
|
|
Karsten Hopp |
f36da1 |
|
|
Karsten Hopp |
f36da1 |
*** ../vim-7.3.161/src/eval.c 2011-04-11 21:35:03.000000000 +0200
|
|
Karsten Hopp |
f36da1 |
--- src/eval.c 2011-04-21 13:40:38.000000000 +0200
|
|
Karsten Hopp |
f36da1 |
***************
|
|
Karsten Hopp |
f36da1 |
*** 2794,2799 ****
|
|
Karsten Hopp |
f36da1 |
--- 2794,2801 ----
|
|
Karsten Hopp |
f36da1 |
{
|
|
Karsten Hopp |
f36da1 |
if (lp->ll_range && !lp->ll_empty2)
|
|
Karsten Hopp |
f36da1 |
clear_tv(&var2;;
|
|
Karsten Hopp |
f36da1 |
+ if (!quiet)
|
|
Karsten Hopp |
f36da1 |
+ EMSGN(_(e_listidx), lp->ll_n1);
|
|
Karsten Hopp |
f36da1 |
return NULL;
|
|
Karsten Hopp |
f36da1 |
}
|
|
Karsten Hopp |
f36da1 |
|
|
Karsten Hopp |
f36da1 |
***************
|
|
Karsten Hopp |
f36da1 |
*** 2811,2817 ****
|
|
Karsten Hopp |
f36da1 |
--- 2813,2823 ----
|
|
Karsten Hopp |
f36da1 |
{
|
|
Karsten Hopp |
f36da1 |
ni = list_find(lp->ll_list, lp->ll_n2);
|
|
Karsten Hopp |
f36da1 |
if (ni == NULL)
|
|
Karsten Hopp |
f36da1 |
+ {
|
|
Karsten Hopp |
f36da1 |
+ if (!quiet)
|
|
Karsten Hopp |
f36da1 |
+ EMSGN(_(e_listidx), lp->ll_n2);
|
|
Karsten Hopp |
f36da1 |
return NULL;
|
|
Karsten Hopp |
f36da1 |
+ }
|
|
Karsten Hopp |
f36da1 |
lp->ll_n2 = list_idx_of_item(lp->ll_list, ni);
|
|
Karsten Hopp |
f36da1 |
}
|
|
Karsten Hopp |
f36da1 |
|
|
Karsten Hopp |
f36da1 |
***************
|
|
Karsten Hopp |
f36da1 |
*** 2819,2825 ****
|
|
Karsten Hopp |
f36da1 |
--- 2825,2835 ----
|
|
Karsten Hopp |
f36da1 |
if (lp->ll_n1 < 0)
|
|
Karsten Hopp |
f36da1 |
lp->ll_n1 = list_idx_of_item(lp->ll_list, lp->ll_li);
|
|
Karsten Hopp |
f36da1 |
if (lp->ll_n2 < lp->ll_n1)
|
|
Karsten Hopp |
f36da1 |
+ {
|
|
Karsten Hopp |
f36da1 |
+ if (!quiet)
|
|
Karsten Hopp |
f36da1 |
+ EMSGN(_(e_listidx), lp->ll_n2);
|
|
Karsten Hopp |
f36da1 |
return NULL;
|
|
Karsten Hopp |
f36da1 |
+ }
|
|
Karsten Hopp |
f36da1 |
}
|
|
Karsten Hopp |
f36da1 |
|
|
Karsten Hopp |
f36da1 |
lp->ll_tv = &lp->ll_li->li_tv;
|
|
Karsten Hopp |
f36da1 |
*** ../vim-7.3.161/src/version.c 2011-04-11 21:35:03.000000000 +0200
|
|
Karsten Hopp |
f36da1 |
--- src/version.c 2011-04-21 13:44:46.000000000 +0200
|
|
Karsten Hopp |
f36da1 |
***************
|
|
Karsten Hopp |
f36da1 |
*** 716,717 ****
|
|
Karsten Hopp |
f36da1 |
--- 716,719 ----
|
|
Karsten Hopp |
f36da1 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
f36da1 |
+ /**/
|
|
Karsten Hopp |
f36da1 |
+ 162,
|
|
Karsten Hopp |
f36da1 |
/**/
|
|
Karsten Hopp |
f36da1 |
|
|
Karsten Hopp |
f36da1 |
--
|
|
Karsten Hopp |
f36da1 |
Far back in the mists of ancient time, in the great and glorious days of the
|
|
Karsten Hopp |
f36da1 |
former Galactic Empire, life was wild, rich and largely tax free.
|
|
Karsten Hopp |
f36da1 |
Mighty starships plied their way between exotic suns, seeking adventure and
|
|
Karsten Hopp |
f36da1 |
reward among the furthest reaches of Galactic space. In those days, spirits
|
|
Karsten Hopp |
f36da1 |
were brave, the stakes were high, men were real men, women were real women
|
|
Karsten Hopp |
f36da1 |
and small furry creatures from Alpha Centauri were real small furry creatures
|
|
Karsten Hopp |
f36da1 |
from Alpha Centauri. And all dared to brave unknown terrors, to do mighty
|
|
Karsten Hopp |
f36da1 |
deeds, to boldly split infinitives that no man had split before -- and thus
|
|
Karsten Hopp |
f36da1 |
was the Empire forged.
|
|
Karsten Hopp |
f36da1 |
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
|
|
Karsten Hopp |
f36da1 |
|
|
Karsten Hopp |
f36da1 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
f36da1 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
f36da1 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
f36da1 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|