]>
Commit | Line | Data |
---|---|---|
c86c2677 ER |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.1.287 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.1.287 | |
11 | Problem: Crash when reversing a list after using it. (Andy Wokula) | |
12 | Solution: Update the pointer to the last used element. (Dominique Pelle) | |
13 | Files: src/eval.c | |
14 | ||
15 | ||
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 | |
18 | *************** | |
19 | *** 13954,13959 **** | |
20 | --- 13954,13960 ---- | |
21 | rettv->vval.v_list = l; | |
22 | rettv->v_type = VAR_LIST; | |
23 | ++l->lv_refcount; | |
24 | + l->lv_idx = l->lv_len - l->lv_idx - 1; | |
25 | } | |
26 | } | |
27 | ||
28 | *************** | |
29 | *** 15202,15208 **** | |
30 | if (!item_compare_func_err) | |
31 | { | |
32 | /* Clear the List and append the items in the sorted order. */ | |
33 | ! l->lv_first = l->lv_last = NULL; | |
34 | l->lv_len = 0; | |
35 | for (i = 0; i < len; ++i) | |
36 | list_append(l, ptrs[i]); | |
37 | --- 15203,15209 ---- | |
38 | if (!item_compare_func_err) | |
39 | { | |
40 | /* Clear the List and append the items in the sorted order. */ | |
41 | ! l->lv_first = l->lv_last = l->lv_idx_item = NULL; | |
42 | l->lv_len = 0; | |
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 | |
47 | *************** | |
48 | *** 668,669 **** | |
49 | --- 668,671 ---- | |
50 | { /* Add new patch number below this line */ | |
51 | + /**/ | |
52 | + 287, | |
53 | /**/ | |
54 | ||
55 | -- | |
56 | hundred-and-one symptoms of being an internet addict: | |
57 | 203. You're an active member of more than 20 newsgroups. | |
58 | ||
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 /// |