summaryrefslogtreecommitdiff
path: root/src/vim9script.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-02-07 15:28:09 +0100
committerBram Moolenaar <Bram@vim.org>2021-02-07 15:28:09 +0100
commitc3fc75db023f2acd0b82b7eebffd7ed89e8001ed (patch)
treeccd13a21ec12f4b20124bedb7397896471ec8e9a /src/vim9script.c
parent00385114dbd6a3d59516baa02e1ea86a1e7ee70e (diff)
downloadvim-git-c3fc75db023f2acd0b82b7eebffd7ed89e8001ed.tar.gz
patch 8.2.2480: Vim9: some errors for white space do not show contextv8.2.2480
Problem: Vim9: some errors for white space do not show context. Solution: Include the text at the error.
Diffstat (limited to 'src/vim9script.c')
-rw-r--r--src/vim9script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9script.c b/src/vim9script.c
index 010b4bfdb..387c9bedc 100644
--- a/src/vim9script.c
+++ b/src/vim9script.c
@@ -629,7 +629,7 @@ vim9_declare_scriptvar(exarg_T *eap, char_u *arg)
}
if (!VIM_ISWHITE(p[1]))
{
- semsg(_(e_white_space_required_after_str), ":");
+ semsg(_(e_white_space_required_after_str_str), ":", p);
return arg + STRLEN(arg);
}
name = vim_strnsave(arg, p - arg);