comparison src/ex_eval.c @ 26861:df2de1e63de0 v8.2.3959

patch 8.2.3959: error messages are spread out Commit: https://github.com/vim/vim/commit/6d0570117ac86b7979bf249de5741088212d6e17 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 31 18:49:43 2021 +0000 patch 8.2.3959: 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 Fri, 31 Dec 2021 20:00:05 +0100
parents 2aeea8611342
children bce848ec8b1b
comparison
equal deleted inserted replaced
26860:07ad81bfab52 26861:df2de1e63de0
2514 leave_block(cstack); 2514 leave_block(cstack);
2515 } 2515 }
2516 } 2516 }
2517 2517
2518 /* 2518 /*
2519 * ":endfunction" when not after a ":function" 2519 * ":endfunction" or ":enddef" when not after a ":function"
2520 */ 2520 */
2521 void 2521 void
2522 ex_endfunction(exarg_T *eap) 2522 ex_endfunction(exarg_T *eap)
2523 { 2523 {
2524 if (eap->cmdidx == CMD_enddef) 2524 if (eap->cmdidx == CMD_enddef)
2525 emsg(_("E193: :enddef not inside a function")); 2525 semsg(_(e_str_not_inside_function), ":enddef");
2526 else 2526 else
2527 emsg(_("E193: :endfunction not inside a function")); 2527 semsg(_(e_str_not_inside_function), ":endfunction");
2528 } 2528 }
2529 2529
2530 /* 2530 /*
2531 * Return TRUE if the string "p" looks like a ":while" or ":for" command. 2531 * Return TRUE if the string "p" looks like a ":while" or ":for" command.
2532 */ 2532 */