Mercurial > vim
diff src/errors.h @ 30203:a3016780f346 v9.0.0437
patch 9.0.0437: no error when custom completion function returns wrong type
Commit: https://github.com/vim/vim/commit/55e9366e32bc0e1056478d1d0ae935f9cf039d6a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 10 13:52:26 2022 +0100
patch 9.0.0437: no error when custom completion function returns wrong type
Problem: No error when a custom completion function returns something else
than the expected list.
Solution: Give an error. (closes #11100)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 10 Sep 2022 15:00:03 +0200 |
parents | 499c766d0c14 |
children | e0cb5fb44859 |
line wrap: on
line diff
--- a/src/errors.h +++ b/src/errors.h @@ -3333,4 +3333,6 @@ EXTERN char e_string_number_list_or_blob INIT(= N_("E1301: String, Number, List or Blob required for argument %d")); EXTERN char e_script_variable_was_deleted[] INIT(= N_("E1302: Script variable was deleted")); -#endif +EXTERN char e_custom_list_completion_function_does_not_return_list_but_str[] + INIT(= N_("E1303: Custom list completion function does not return a List but a %s")); +#endif