0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.1.0164: Internal error when passing invalid position to getregion()

Problem:  Internal error or crash when passing invalid position to
          getregion().
Solution: Give an error for invalid position (zeertzjq).

closes: #14172

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2024-03-10 15:46:58 +01:00
committed by Christian Brabandt
parent 82e079df81
commit 26dd09ad5e
4 changed files with 71 additions and 21 deletions

View File

@@ -2526,9 +2526,11 @@ EXTERN char e_invalid_action_str_2[]
EXTERN char e_setting_v_str_to_value_with_wrong_type[]
INIT(= N_("E963: Setting v:%s to value with wrong type"));
#endif
#ifdef FEAT_PROP_POPUP
#if defined(FEAT_PROP_POPUP) || defined(FEAT_EVAL)
EXTERN char_u e_invalid_column_number_nr[]
INIT(= N_("E964: Invalid column number: %ld"));
#endif
#ifdef FEAT_PROP_POPUP
EXTERN char e_missing_property_type_name[]
INIT(= N_("E965: Missing property type name"));
#endif