Mercurial > vim
comparison src/ex_cmds.c @ 26883:7f150a4936f2 v8.2.3970
patch 8.2.3970: error messages are spread out
Commit: https://github.com/vim/vim/commit/74409f62790a93daf0965c71da01ff76aa0fa5a5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 1 15:58:22 2022 +0000
patch 8.2.3970: 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 | Sat, 01 Jan 2022 17:00:04 +0100 |
parents | 06a137af96f8 |
children | 3631d2deb36c |
comparison
equal
deleted
inserted
replaced
26882:196f4d7e2a38 | 26883:7f150a4936f2 |
---|---|
3929 if (VIM_ISDIGIT(*cmd)) | 3929 if (VIM_ISDIGIT(*cmd)) |
3930 { | 3930 { |
3931 i = getdigits(&cmd); | 3931 i = getdigits(&cmd); |
3932 if (i <= 0 && !eap->skip && subflags.do_error) | 3932 if (i <= 0 && !eap->skip && subflags.do_error) |
3933 { | 3933 { |
3934 emsg(_(e_zerocount)); | 3934 emsg(_(e_positive_count_required)); |
3935 return; | 3935 return; |
3936 } | 3936 } |
3937 eap->line1 = eap->line2; | 3937 eap->line1 = eap->line2; |
3938 eap->line2 += i - 1; | 3938 eap->line2 += i - 1; |
3939 if (eap->line2 > curbuf->b_ml.ml_line_count) | 3939 if (eap->line2 > curbuf->b_ml.ml_line_count) |
3947 if (*cmd && *cmd != '"') // if not end-of-line or comment | 3947 if (*cmd && *cmd != '"') // if not end-of-line or comment |
3948 { | 3948 { |
3949 set_nextcmd(eap, cmd); | 3949 set_nextcmd(eap, cmd); |
3950 if (eap->nextcmd == NULL) | 3950 if (eap->nextcmd == NULL) |
3951 { | 3951 { |
3952 semsg(_(e_trailing_arg), cmd); | 3952 semsg(_(e_trailing_characters_str), cmd); |
3953 return; | 3953 return; |
3954 } | 3954 } |
3955 } | 3955 } |
3956 | 3956 |
3957 if (eap->skip) // not executing commands, only parsing | 3957 if (eap->skip) // not executing commands, only parsing |