comparison src/ex_docmd.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
8333 { 8333 {
8334 pos = curwin->w_cursor; // save curwin->w_cursor 8334 pos = curwin->w_cursor; // save curwin->w_cursor
8335 curwin->w_cursor.lnum = eap->line2; 8335 curwin->w_cursor.lnum = eap->line2;
8336 beginline(BL_WHITE | BL_FIX); 8336 beginline(BL_WHITE | BL_FIX);
8337 if (setmark(*eap->arg) == FAIL) // set mark 8337 if (setmark(*eap->arg) == FAIL) // set mark
8338 emsg(_("E191: Argument must be a letter or forward/backward quote")); 8338 emsg(_(e_argument_must_be_letter_or_forward_backward_quote));
8339 curwin->w_cursor = pos; // restore curwin->w_cursor 8339 curwin->w_cursor = pos; // restore curwin->w_cursor
8340 } 8340 }
8341 } 8341 }
8342 8342
8343 /* 8343 /*
8424 emsg(_(e_secure)); 8424 emsg(_(e_secure));
8425 return; 8425 return;
8426 } 8426 }
8427 if (ex_normal_busy >= p_mmd) 8427 if (ex_normal_busy >= p_mmd)
8428 { 8428 {
8429 emsg(_("E192: Recursive use of :normal too deep")); 8429 emsg(_(e_recursive_use_of_normal_too_deep));
8430 return; 8430 return;
8431 } 8431 }
8432 8432
8433 /* 8433 /*
8434 * vgetc() expects a CSI and K_SPECIAL to have been escaped. Don't do 8434 * vgetc() expects a CSI and K_SPECIAL to have been escaped. Don't do
9060 if (i == 0 && src[off + 1] == '<' && *usedlen > off + 1) 9060 if (i == 0 && src[off + 1] == '<' && *usedlen > off + 1)
9061 *usedlen = off + 1; 9061 *usedlen = off + 1;
9062 buf = buflist_findnr(i); 9062 buf = buflist_findnr(i);
9063 if (buf == NULL) 9063 if (buf == NULL)
9064 { 9064 {
9065 *errormsg = _("E194: No alternate file name to substitute for '#'"); 9065 *errormsg = _(e_no_alternate_file_name_to_substitute_for_hash);
9066 return NULL; 9066 return NULL;
9067 } 9067 }
9068 if (lnump != NULL) 9068 if (lnump != NULL)
9069 *lnump = ECMD_LAST; 9069 *lnump = ECMD_LAST;
9070 if (buf->b_fname == NULL) 9070 if (buf->b_fname == NULL)