diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-27 20:57:06 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-27 20:57:06 +0000 |
commit | 8dac2acd6a79d571ff5409d9c90b4c9e73237eb4 (patch) | |
tree | 1d3712aff207fc834fb5aa8dc5afc2a394fc7788 /src/errors.h | |
parent | 4b28ba3245df8274303c79429972f9dc9438e4aa (diff) |
patch 8.2.3916: no error for passing an invalid line number to append()v8.2.3916
Problem: No error for passing an invalid line number to append().
Solution: In Vim9 script check for a non-negative number. (closes #9417)
Diffstat (limited to 'src/errors.h')
-rw-r--r-- | src/errors.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/errors.h b/src/errors.h index c629953eb6..5ca74cc1d0 100644 --- a/src/errors.h +++ b/src/errors.h @@ -357,6 +357,10 @@ EXTERN char e_using_invalid_value_as_string_str[] EXTERN char e_cannot_index_special_variable[] INIT(= N_("E909: Cannot index a special variable")); #endif +EXTERN char_u e_invalid_column_number_nr[] + INIT(= N_("E964: Invalid column number: %ld")); +EXTERN char_u e_invalid_line_number_nr[] + INIT(= N_("E966: Invalid line number: %ld")); EXTERN char e_command_not_supported_in_vim9_script_missing_var_str[] INIT(= N_("E1100: Command not supported in Vim9 script (missing :var?): %s")); #ifdef FEAT_EVAL |