summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimboss <devnull@localhost>2008-04-01 11:12:09 +0000
committervimboss <devnull@localhost>2008-04-01 11:12:09 +0000
commit00d55007429dff404653f68311e922939b14f0e5 (patch)
tree21bbae8747159794dacea9f417e79e3fdb4d24e8
parent56ee9559e8d8f172a2cd3d47152b834338698a0e (diff)
downloadvim-00d55007429dff404653f68311e922939b14f0e5.tar.gz
updated for version 7.1-287v7.1.287v7-1-287
-rw-r--r--src/eval.c3
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index 2a920ed8..e008df24 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -13954,6 +13954,7 @@ f_reverse(argvars, rettv)
rettv->vval.v_list = l;
rettv->v_type = VAR_LIST;
++l->lv_refcount;
+ l->lv_idx = l->lv_len - l->lv_idx - 1;
}
}
@@ -15202,7 +15203,7 @@ f_sort(argvars, rettv)
if (!item_compare_func_err)
{
/* Clear the List and append the items in the sorted order. */
- l->lv_first = l->lv_last = NULL;
+ l->lv_first = l->lv_last = l->lv_idx_item = NULL;
l->lv_len = 0;
for (i = 0; i < len; ++i)
list_append(l, ptrs[i]);
diff --git a/src/version.c b/src/version.c
index ef3fc0da..e105f140 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 287,
+/**/
286,
/**/
285,