4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Crash when reversing a list after using it. (Andy Wokula)
12 Solution: Update the pointer to the last used element. (Dominique Pelle)
16 *** ../vim-7.1.286/src/eval.c Thu Mar 20 13:22:47 2008
17 --- src/eval.c Tue Apr 1 12:36:41 2008
21 rettv->vval.v_list = l;
22 rettv->v_type = VAR_LIST;
24 + l->lv_idx = l->lv_len - l->lv_idx - 1;
30 if (!item_compare_func_err)
32 /* Clear the List and append the items in the sorted order. */
33 ! l->lv_first = l->lv_last = NULL;
35 for (i = 0; i < len; ++i)
36 list_append(l, ptrs[i]);
38 if (!item_compare_func_err)
40 /* Clear the List and append the items in the sorted order. */
41 ! l->lv_first = l->lv_last = l->lv_idx_item = NULL;
43 for (i = 0; i < len; ++i)
44 list_append(l, ptrs[i]);
45 *** ../vim-7.1.286/src/version.c Tue Apr 1 12:05:49 2008
46 --- src/version.c Tue Apr 1 13:09:10 2008
50 { /* Add new patch number below this line */
56 hundred-and-one symptoms of being an internet addict:
57 203. You're an active member of more than 20 newsgroups.
59 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
60 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
61 \\\ download, build and distribute -- http://www.A-A-P.org ///
62 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///