summaryrefslogtreecommitdiffstats
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-21 15:52:59 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-21 15:52:59 +0200
commite55b1c098d9dc04c960e6575bb554b5130af8989 (patch)
tree5c2825d93f3b76f1ba87603b062585c72df02131 /src/globals.h
parent820ffa567c5a4bc0d3517c79c91d63d8062c358e (diff)
patch 8.2.1028: Vim9: no error for declaring buffer, window, etc. variablev8.2.1028
Problem: Vim9: no error for declaring buffer, window, etc. variable. Solution: Give an error. Unify the error messages.
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/globals.h b/src/globals.h
index b6356a3600..5dc139eebb 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1788,7 +1788,7 @@ EXTERN char e_no_white_before[] INIT(= N_("E1068: No white space allowed before
EXTERN char e_lock_unlock[] INIT(= N_("E940: Cannot lock or unlock variable %s"));
EXTERN char e_const_req_value[] INIT(= N_("E1021: const requires a value"));
EXTERN char e_type_req[] INIT(= N_("E1022: type or initialization required"));
-EXTERN char e_declare_global[] INIT(= N_("E1016: Cannot declare a global variable: %s"));
+EXTERN char e_declare_var[] INIT(= N_("E1016: Cannot declare a%s variable: %s"));
#endif
#if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS)
EXTERN char e_alloc_color[] INIT(= N_("E254: Cannot allocate color %s"));