comparison src/insexpand.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 7f150a4936f2
comparison
equal deleted inserted replaced
26876:601a973ac16c 26877:06a137af96f8
2958 2958
2959 if (argvars[0].v_type != VAR_UNKNOWN) 2959 if (argvars[0].v_type != VAR_UNKNOWN)
2960 { 2960 {
2961 if (argvars[0].v_type != VAR_LIST) 2961 if (argvars[0].v_type != VAR_LIST)
2962 { 2962 {
2963 emsg(_(e_listreq)); 2963 emsg(_(e_list_required));
2964 return; 2964 return;
2965 } 2965 }
2966 what_list = argvars[0].vval.v_list; 2966 what_list = argvars[0].vval.v_list;
2967 } 2967 }
2968 get_complete_info(what_list, rettv->vval.v_dict); 2968 get_complete_info(what_list, rettv->vval.v_dict);
4694 // we found no match if the list has only the "compl_orig_text"-entry 4694 // we found no match if the list has only the "compl_orig_text"-entry
4695 if (compl_first_match == compl_first_match->cp_next) 4695 if (compl_first_match == compl_first_match->cp_next)
4696 { 4696 {
4697 edit_submode_extra = (compl_cont_status & CONT_ADDING) 4697 edit_submode_extra = (compl_cont_status & CONT_ADDING)
4698 && compl_length > 1 4698 && compl_length > 1
4699 ? (char_u *)_(e_hitend) : (char_u *)_(e_patnotf); 4699 ? (char_u *)_(e_hitend)
4700 : (char_u *)_(e_pattern_not_found);
4700 edit_submode_highl = HLF_E; 4701 edit_submode_highl = HLF_E;
4701 } 4702 }
4702 4703
4703 if (edit_submode_extra == NULL) 4704 if (edit_submode_extra == NULL)
4704 { 4705 {