Mercurial > vim
diff src/option.c @ 26913:d4e61d61afd9 v8.2.3985
patch 8.2.3985: error messages are spread out
Commit: https://github.com/vim/vim/commit/ac78dd4a352196ca4e6640f8e4caaf126afd49e3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 2 19:25:26 2022 +0000
patch 8.2.3985: 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 | Sun, 02 Jan 2022 20:30:04 +0100 |
parents | 7f150a4936f2 |
children | d91aea2a612c |
line wrap: on
line diff
--- a/src/option.c +++ b/src/option.c @@ -4352,7 +4352,7 @@ set_option_value( return NULL; } - semsg(_("E355: Unknown option: %s"), name); + semsg(_(e_unknown_option_str_2), name); } else { @@ -5520,7 +5520,7 @@ get_varp(struct vimoption *p) case PV_VSTS: return (char_u *)&(curbuf->b_p_vsts); case PV_VTS: return (char_u *)&(curbuf->b_p_vts); #endif - default: iemsg(_("E356: get_varp ERROR")); + default: iemsg(_(e_get_varp_error)); } // always return a valid pointer to avoid a crash! return (char_u *)&(curbuf->b_p_wm);