diff src/evalvars.c @ 30399:7fc27d7ce3b0 v9.0.0535

patch 9.0.0535: closure gets wrong value in for loop with two loop variables Commit: https://github.com/vim/vim/commit/e8e369a796e110760d033e937b40c84e0c5e8b36 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 21 18:59:14 2022 +0100 patch 9.0.0535: closure gets wrong value in for loop with two loop variables Problem: Closure gets wrong value in for loop with two loop variables. Solution: Correctly compute the number of loop variables to clear.
author Bram Moolenaar <Bram@vim.org>
date Wed, 21 Sep 2022 20:00:05 +0200
parents c0f0118b6790
children 37aa9fd2ed72
line wrap: on
line diff
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -1315,8 +1315,8 @@ skip_var_list(
 	}
 	return p + 1;
     }
-    else
-	return skip_var_one(arg, include_type);
+ 
+    return skip_var_one(arg, include_type);
 }
 
 /*