diff src/errors.h @ 26230:8b8470b511f5 v8.2.3646

patch 8.2.3646: using <sfile> in a function gives an unexpected result Commit: https://github.com/vim/vim/commit/c449271f4efa44725c40116a95b213813040312f Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 22 15:37:15 2021 +0000 patch 8.2.3646: using <sfile> in a function gives an unexpected result Problem: Using <sfile> in a function gives an unexpected result. Solution: Give an error in a Vim9 function. (issue https://github.com/vim/vim/issues/9189)
author Bram Moolenaar <Bram@vim.org>
date Mon, 22 Nov 2021 16:45:04 +0100
parents 92c424550367
children 640b62dbf6cb
line wrap: on
line diff
--- 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"));