Mercurial > vim
diff src/dict.c @ 31602:53c3df37a2b0 v9.0.1133
patch 9.0.1133: error message names do not match the items
Commit: https://github.com/vim/vim/commit/a9fa8c58fbcc5cf8850f6963c509de272f4d4bbf
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 2 18:10:04 2023 +0000
patch 9.0.1133: error message names do not match the items
Problem: Error message names do not match the items.
Solution: Add "_str" when the text contains "%s".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 02 Jan 2023 19:15:04 +0100 |
parents | c8d4fced1f94 |
children | b89cfd86e18e |
line wrap: on
line diff
--- a/src/dict.c +++ b/src/dict.c @@ -982,7 +982,7 @@ eval_dict(char_u **arg, typval_T *rettv, if (*skipwhite(*arg) == ':') semsg(_(e_no_white_space_allowed_before_str_str), ":", *arg); else - semsg(_(e_missing_colon_in_dictionary), *arg); + semsg(_(e_missing_colon_in_dictionary_str), *arg); clear_tv(&tvkey); goto failret; } @@ -1020,7 +1020,7 @@ eval_dict(char_u **arg, typval_T *rettv, item = dict_find(d, key, -1); if (item != NULL) { - semsg(_(e_duplicate_key_in_dictionary), key); + semsg(_(e_duplicate_key_in_dictionary_str), key); clear_tv(&tvkey); clear_tv(&tv); goto failret; @@ -1060,7 +1060,7 @@ eval_dict(char_u **arg, typval_T *rettv, if (**arg == ',') semsg(_(e_no_white_space_allowed_before_str_str), ",", *arg); else - semsg(_(e_missing_comma_in_dictionary), *arg); + semsg(_(e_missing_comma_in_dictionary_str), *arg); goto failret; } } @@ -1068,7 +1068,7 @@ eval_dict(char_u **arg, typval_T *rettv, if (**arg != '}') { if (evalarg != NULL) - semsg(_(e_missing_dict_end), *arg); + semsg(_(e_missing_dict_end_str), *arg); failret: if (d != NULL) dict_free(d); @@ -1456,7 +1456,7 @@ dict_remove(typval_T *argvars, typval_T di = dict_find(d, key, -1); if (di == NULL) { - semsg(_(e_key_not_present_in_dictionary), key); + semsg(_(e_key_not_present_in_dictionary_str), key); return; }