diff src/errors.h @ 27412:557a50b0d10b v8.2.4234

patch 8.2.4234: test_garbagecollect_now() does not check v:testing Commit: https://github.com/vim/vim/commit/b3d83980d2ac0f7a25314270416f17af874ca269 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 27 19:59:47 2022 +0000 patch 8.2.4234: test_garbagecollect_now() does not check v:testing Problem: test_garbagecollect_now() does not check v:testing as documented. Solution: Give an error if v:testing is not set.
author Bram Moolenaar <Bram@vim.org>
date Thu, 27 Jan 2022 21:00:04 +0100
parents 69a48bcd1d80
children b17fe5191b49
line wrap: on
line diff
--- a/src/errors.h
+++ b/src/errors.h
@@ -2909,7 +2909,8 @@ EXTERN char e_for_argument_must_be_seque
 	INIT(= N_("E1140: :for argument must be a sequence of lists"));
 EXTERN char e_indexable_type_required[]
 	INIT(= N_("E1141: Indexable type required"));
-// E1142 unused
+EXTERN char e_calling_test_garbagecollect_now_while_v_testing_is_not_set[]
+	INIT(= N_("E1142: Calling test_garbagecollect_now() while v:testing is not set"));
 EXTERN char e_empty_expression_str[]
 	INIT(= N_("E1143: Empty expression: \"%s\""));
 EXTERN char e_command_str_not_followed_by_white_space_str[]