Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/search.c +++ b/src/search.c @@ -1124,7 +1124,7 @@ searchit( else if ((options & SEARCH_MSG) == SEARCH_MSG) { if (p_ws) - semsg(_(e_patnotf2), mr_pattern); + semsg(_(e_pattern_not_found_str), mr_pattern); else if (lnum == 0) semsg(_("E384: search hit TOP without match for: %s"), mr_pattern); @@ -4121,7 +4121,7 @@ f_searchcount(typval_T *argvars, typval_ if (argvars[0].v_type != VAR_DICT || argvars[0].vval.v_dict == NULL) { - emsg(_(e_dictreq)); + emsg(_(e_dictionary_required)); return; } dict = argvars[0].vval.v_dict; @@ -4824,7 +4824,7 @@ do_fuzzymatch(typval_T *argvars, typval_ if (argvars[2].v_type != VAR_DICT || argvars[2].vval.v_dict == NULL) { - emsg(_(e_dictreq)); + emsg(_(e_dictionary_required)); return; }