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