diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-06 11:35:28 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-06 11:35:28 +0100 |
commit | 25f40af9d2f04d18c8a276249f2794e83aa5c290 (patch) | |
tree | 211120fc59c884678f5d27233a85af3401452c83 /src/vim9script.c | |
parent | 5ac4b1a24e3ba52698a0d24b22cdd2e1c7895417 (diff) | |
download | vim-git-25f40af9d2f04d18c8a276249f2794e83aa5c290.tar.gz |
patch 9.0.0150: error for using #{ in an expression is a bit confusingv9.0.0150
Problem: Error for using #{ in an expression is a bit confusing.
Solution: Mention that this error is only given for an expression.
Avoid giving the error more than once. (closes #10855)
Diffstat (limited to 'src/vim9script.c')
-rw-r--r-- | src/vim9script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vim9script.c b/src/vim9script.c index 14f36b405..e3cb992e4 100644 --- a/src/vim9script.c +++ b/src/vim9script.c @@ -183,9 +183,9 @@ not_in_vim9(exarg_T *eap) int vim9_bad_comment(char_u *p) { - if (p[0] == '#' && p[1] == '{' && p[2] != '{') + if (!did_emsg && p[0] == '#' && p[1] == '{' && p[2] != '{') { - emsg(_(e_cannot_use_hash_curly_to_start_comment)); + emsg(_(e_cannot_use_hash_curly_to_start_comment_in_an_expression)); return TRUE; } return FALSE; |