summaryrefslogtreecommitdiffstats
path: root/src/errors.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-11-22 15:37:15 +0000
committerBram Moolenaar <Bram@vim.org>2021-11-22 15:37:15 +0000
commitc449271f4efa44725c40116a95b213813040312f (patch)
treef495ca9513d62700fe76e1d526565e899e4688da /src/errors.h
parent7d5b8becc342e49e491053ea842e59f82d072001 (diff)
patch 8.2.3646: using <sfile> in a function gives an unexpected resultv8.2.3646
Problem: Using <sfile> in a function gives an unexpected result. Solution: Give an error in a Vim9 function. (issue #9189)
Diffstat (limited to 'src/errors.h')
-rw-r--r--src/errors.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/errors.h b/src/errors.h
index 537072d7d5..753e2fe41e 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -684,3 +684,5 @@ EXTERN char e_ascii_code_not_in_range[]
INIT(= N_("E1243: ASCII code not in 32-127 range"));
EXTERN char e_bad_color_string_str[]
INIT(= N_("E1244: Bad color string: %s"));
+EXTERN char e_cannot_expand_sfile_in_vim9_function[]
+ INIT(= N_("E1245: Cannot expand <sfile> in a Vim9 function"));