From a6f7929e62c19a6a2418a016b4c59b83eb1887ac Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 4 Jan 2022 21:30:47 +0000 Subject: patch 8.2.4005: error messages are spread out Problem: Error messages are spread out. Solution: Move more error messages to errors.h. --- src/list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/list.c') diff --git a/src/list.c b/src/list.c index aadc7233d..226d25d2e 100644 --- a/src/list.c +++ b/src/list.c @@ -1542,7 +1542,7 @@ eval_list(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int do_error) semsg(_(e_no_white_space_allowed_before_str_str), ",", *arg); else - semsg(_("E696: Missing comma in List: %s"), *arg); + semsg(_(e_missing_comma_in_list_str), *arg); } goto failret; } @@ -2002,7 +2002,7 @@ do_sort(list_T *l, sortinfo_T *info) || info->item_compare_partial != NULL) && item_compare2((void *)&ptrs[0], (void *)&ptrs[1]) == ITEM_COMPARE_FAIL) - emsg(_("E702: Sort compare function failed")); + emsg(_(e_sort_compare_function_failed)); else { // Sort the array with item pointers. -- cgit v1.2.1