comparison src/list.c @ 26952:b34ddbca305c v8.2.4005

patch 8.2.4005: error messages are spread out Commit: https://github.com/vim/vim/commit/a6f7929e62c19a6a2418a016b4c59b83eb1887ac Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 4 21:30:47 2022 +0000 patch 8.2.4005: error messages are spread out Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Tue, 04 Jan 2022 22:45:04 +0100
parents 7045e9308ca3
children ac75c145f0a9
comparison
equal deleted inserted replaced
26951:c3fbe78b6109 26952:b34ddbca305c
1540 { 1540 {
1541 if (**arg == ',') 1541 if (**arg == ',')
1542 semsg(_(e_no_white_space_allowed_before_str_str), 1542 semsg(_(e_no_white_space_allowed_before_str_str),
1543 ",", *arg); 1543 ",", *arg);
1544 else 1544 else
1545 semsg(_("E696: Missing comma in List: %s"), *arg); 1545 semsg(_(e_missing_comma_in_list_str), *arg);
1546 } 1546 }
1547 goto failret; 1547 goto failret;
1548 } 1548 }
1549 } 1549 }
1550 1550
2000 // test the compare function 2000 // test the compare function
2001 if ((info->item_compare_func != NULL 2001 if ((info->item_compare_func != NULL
2002 || info->item_compare_partial != NULL) 2002 || info->item_compare_partial != NULL)
2003 && item_compare2((void *)&ptrs[0], (void *)&ptrs[1]) 2003 && item_compare2((void *)&ptrs[0], (void *)&ptrs[1])
2004 == ITEM_COMPARE_FAIL) 2004 == ITEM_COMPARE_FAIL)
2005 emsg(_("E702: Sort compare function failed")); 2005 emsg(_(e_sort_compare_function_failed));
2006 else 2006 else
2007 { 2007 {
2008 // Sort the array with item pointers. 2008 // Sort the array with item pointers.
2009 qsort((void *)ptrs, (size_t)len, sizeof(sortItem_T), 2009 qsort((void *)ptrs, (size_t)len, sizeof(sortItem_T),
2010 info->item_compare_func == NULL 2010 info->item_compare_func == NULL