diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-11 16:01:58 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-11 16:01:58 +0200 |
commit | 0f1227f7d5a3e368f61d396c1640088c079fef91 (patch) | |
tree | c7afe1e85b36fff5b513a8c465e7601364079f5d /src/eval.c | |
parent | d9162550aa47ca3865a5cadf78ff2212a1d8eca7 (diff) |
patch 8.2.3144: Vim9: no error when using an invalid value for a line numberv8.2.3144
Problem: Vim9: no error when using an invalid value for a line number.
Solution: Give an error if the string value is not recognized.
(closes #8536)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 4d94d67ee6..6537ffea41 100644 --- a/src/eval.c +++ b/src/eval.c @@ -5376,6 +5376,8 @@ var2fpos( } return &pos; } + if (in_vim9script()) + semsg(_(e_invalid_value_for_line_number_str), name); return NULL; } |