comparison src/search.c @ 26877:06a137af96f8 v8.2.3967

patch 8.2.3967: error messages are spread out Commit: https://github.com/vim/vim/commit/460ae5dfca31fa627531c263184849976755cf6b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 1 14:19:49 2022 +0000 patch 8.2.3967: error messages are spread out Problem: Error messages are spread out. Solution: Move more errors to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jan 2022 15:30:05 +0100
parents bce848ec8b1b
children 612339679616
comparison
equal deleted inserted replaced
26876:601a973ac16c 26877:06a137af96f8
1122 if (got_int) 1122 if (got_int)
1123 emsg(_(e_interrupted)); 1123 emsg(_(e_interrupted));
1124 else if ((options & SEARCH_MSG) == SEARCH_MSG) 1124 else if ((options & SEARCH_MSG) == SEARCH_MSG)
1125 { 1125 {
1126 if (p_ws) 1126 if (p_ws)
1127 semsg(_(e_patnotf2), mr_pattern); 1127 semsg(_(e_pattern_not_found_str), mr_pattern);
1128 else if (lnum == 0) 1128 else if (lnum == 0)
1129 semsg(_("E384: search hit TOP without match for: %s"), 1129 semsg(_("E384: search hit TOP without match for: %s"),
1130 mr_pattern); 1130 mr_pattern);
1131 else 1131 else
1132 semsg(_("E385: search hit BOTTOM without match for: %s"), 1132 semsg(_("E385: search hit BOTTOM without match for: %s"),
4119 listitem_T *li; 4119 listitem_T *li;
4120 int error = FALSE; 4120 int error = FALSE;
4121 4121
4122 if (argvars[0].v_type != VAR_DICT || argvars[0].vval.v_dict == NULL) 4122 if (argvars[0].v_type != VAR_DICT || argvars[0].vval.v_dict == NULL)
4123 { 4123 {
4124 emsg(_(e_dictreq)); 4124 emsg(_(e_dictionary_required));
4125 return; 4125 return;
4126 } 4126 }
4127 dict = argvars[0].vval.v_dict; 4127 dict = argvars[0].vval.v_dict;
4128 di = dict_find(dict, (char_u *)"timeout", -1); 4128 di = dict_find(dict, (char_u *)"timeout", -1);
4129 if (di != NULL) 4129 if (di != NULL)
4822 dict_T *d; 4822 dict_T *d;
4823 dictitem_T *di; 4823 dictitem_T *di;
4824 4824
4825 if (argvars[2].v_type != VAR_DICT || argvars[2].vval.v_dict == NULL) 4825 if (argvars[2].v_type != VAR_DICT || argvars[2].vval.v_dict == NULL)
4826 { 4826 {
4827 emsg(_(e_dictreq)); 4827 emsg(_(e_dictionary_required));
4828 return; 4828 return;
4829 } 4829 }
4830 4830
4831 // To search a dict, either a callback function or a key can be 4831 // To search a dict, either a callback function or a key can be
4832 // specified. 4832 // specified.