]> granicus.if.org Git - vim/commitdiff
updated for version 7.0-140 v7.0.140
authorBram Moolenaar <Bram@vim.org>
Tue, 17 Oct 2006 13:16:39 +0000 (13:16 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 17 Oct 2006 13:16:39 +0000 (13:16 +0000)
src/eval.c
src/version.c

index 2eb4f8804b81c27a5df174eb83bb15cbeb51e978..c777136568ae340fb87050405ff79a90bf3a5ba0 100644 (file)
@@ -5451,6 +5451,8 @@ list_equal(l1, l2, ic)
 {
     listitem_T *item1, *item2;
 
+    if (l1 == l2)
+       return TRUE;
     if (list_len(l1) != list_len(l2))
        return FALSE;
 
@@ -5487,6 +5489,8 @@ dict_equal(d1, d2, ic)
     dictitem_T *item2;
     int                todo;
 
+    if (d1 == d2)
+       return TRUE;
     if (dict_len(d1) != dict_len(d2))
        return FALSE;
 
@@ -5522,10 +5526,12 @@ tv_equal(tv1, tv2, ic)
     static int  recursive = 0;     /* cach recursive loops */
     int                r;
 
-    /* Catch lists and dicts that have an endless loop by limiting
-     * recursiveness to 1000. */
-    if (tv1->v_type != tv2->v_type || recursive >= 1000)
+    if (tv1->v_type != tv2->v_type)
        return FALSE;
+    /* Catch lists and dicts that have an endless loop by limiting
+     * recursiveness to 1000.  We guess they are equal then. */
+    if (recursive >= 1000)
+       return TRUE;
 
     switch (tv1->v_type)
     {
index 52eb65cd72a1f7f793bafa6796db5ea94c43e43e..eae093602da2066ec5482b473d4215488c71a870 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    140,
 /**/
     139,
 /**/