comparison src/ops.c @ 26958:d92e0d85923f v8.2.4008

patch 8.2.4008: error messages are spread out Commit: https://github.com/vim/vim/commit/677658ae49de31fe2e5b1fa6d93fdfab85a4362e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 5 16:09:06 2022 +0000 patch 8.2.4008: 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 Wed, 05 Jan 2022 17:15:05 +0100
parents 5aa9e8db975c
children 268f6a3511df
comparison
equal deleted inserted replaced
26957:e5b81e2bed22 26958:d92e0d85923f
3379 pos_T orig_start = curbuf->b_op_start; 3379 pos_T orig_start = curbuf->b_op_start;
3380 pos_T orig_end = curbuf->b_op_end; 3380 pos_T orig_end = curbuf->b_op_end;
3381 typval_T rettv; 3381 typval_T rettv;
3382 3382
3383 if (*p_opfunc == NUL) 3383 if (*p_opfunc == NUL)
3384 emsg(_("E774: 'operatorfunc' is empty")); 3384 emsg(_(e_operatorfunc_is_empty));
3385 else 3385 else
3386 { 3386 {
3387 // Set '[ and '] marks to text to be operated on. 3387 // Set '[ and '] marks to text to be operated on.
3388 curbuf->b_op_start = oap->start; 3388 curbuf->b_op_start = oap->start;
3389 curbuf->b_op_end = oap->end; 3389 curbuf->b_op_end = oap->end;
3417 curbuf->b_op_start = orig_start; 3417 curbuf->b_op_start = orig_start;
3418 curbuf->b_op_end = orig_end; 3418 curbuf->b_op_end = orig_end;
3419 } 3419 }
3420 } 3420 }
3421 #else 3421 #else
3422 emsg(_("E775: Eval feature not available")); 3422 emsg(_(e_eval_feature_not_available));
3423 #endif 3423 #endif
3424 } 3424 }
3425 3425
3426 /* 3426 /*
3427 * Calculate start/end virtual columns for operating in block mode. 3427 * Calculate start/end virtual columns for operating in block mode.