From 6d020a50de74be6db0a9f27d947746b96cfa1e93 Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Sun, 12 Jul 2020 22:12:08 +0100 Subject: [PATCH] Fix removing all assert errors, properly this time --- tests/lib/plugin/shared.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib/plugin/shared.vim b/tests/lib/plugin/shared.vim index d682810..2d656d7 100644 --- a/tests/lib/plugin/shared.vim +++ b/tests/lib/plugin/shared.vim @@ -73,7 +73,7 @@ func s:WaitForCommon(expr, assert, timeout) " Remove the errors added by the assert function. let errors_added = len( v:errors ) - errors_before if errors_added > 0 - call remove(v:errors, -1 * errors_added ) + call remove( v:errors, -1 * errors_added, -1 ) endif endif