Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
26912:e6751c1e2a8e | 26913:d4e61d61afd9 |
---|---|
4350 ttest(FALSE); | 4350 ttest(FALSE); |
4351 redraw_all_later(CLEAR); | 4351 redraw_all_later(CLEAR); |
4352 return NULL; | 4352 return NULL; |
4353 } | 4353 } |
4354 | 4354 |
4355 semsg(_("E355: Unknown option: %s"), name); | 4355 semsg(_(e_unknown_option_str_2), name); |
4356 } | 4356 } |
4357 else | 4357 else |
4358 { | 4358 { |
4359 flags = options[opt_idx].flags; | 4359 flags = options[opt_idx].flags; |
4360 #ifdef HAVE_SANDBOX | 4360 #ifdef HAVE_SANDBOX |
5518 #endif | 5518 #endif |
5519 #ifdef FEAT_VARTABS | 5519 #ifdef FEAT_VARTABS |
5520 case PV_VSTS: return (char_u *)&(curbuf->b_p_vsts); | 5520 case PV_VSTS: return (char_u *)&(curbuf->b_p_vsts); |
5521 case PV_VTS: return (char_u *)&(curbuf->b_p_vts); | 5521 case PV_VTS: return (char_u *)&(curbuf->b_p_vts); |
5522 #endif | 5522 #endif |
5523 default: iemsg(_("E356: get_varp ERROR")); | 5523 default: iemsg(_(e_get_varp_error)); |
5524 } | 5524 } |
5525 // always return a valid pointer to avoid a crash! | 5525 // always return a valid pointer to avoid a crash! |
5526 return (char_u *)&(curbuf->b_p_wm); | 5526 return (char_u *)&(curbuf->b_p_wm); |
5527 } | 5527 } |
5528 | 5528 |