Mercurial > vim
comparison src/indent.c @ 26877:06a137af96f8 v8.2.3967
patch 8.2.3967: error messages are spread out
Commit: https://github.com/vim/vim/commit/460ae5dfca31fa627531c263184849976755cf6b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 1 14:19:49 2022 +0000
patch 8.2.3967: 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 15:30:05 +0100 |
parents | bce848ec8b1b |
children | 8c0730eca2ce |
comparison
equal
deleted
inserted
replaced
26876:601a973ac16c | 26877:06a137af96f8 |
---|---|
40 char_u *end; | 40 char_u *end; |
41 | 41 |
42 if (strtol((char *)cp, (char **)&end, 10) <= 0) | 42 if (strtol((char *)cp, (char **)&end, 10) <= 0) |
43 { | 43 { |
44 if (cp != end) | 44 if (cp != end) |
45 emsg(_(e_positive)); | 45 emsg(_(e_argument_must_be_positive)); |
46 else | 46 else |
47 semsg(_(e_invalid_argument_str), cp); | 47 semsg(_(e_invalid_argument_str), cp); |
48 return FAIL; | 48 return FAIL; |
49 } | 49 } |
50 } | 50 } |
1620 #else | 1620 #else |
1621 ptr = eap->arg; | 1621 ptr = eap->arg; |
1622 new_ts = getdigits(&ptr); | 1622 new_ts = getdigits(&ptr); |
1623 if (new_ts < 0 && *eap->arg == '-') | 1623 if (new_ts < 0 && *eap->arg == '-') |
1624 { | 1624 { |
1625 emsg(_(e_positive)); | 1625 emsg(_(e_argument_must_be_positive)); |
1626 return; | 1626 return; |
1627 } | 1627 } |
1628 if (new_ts < 0 || new_ts > 9999) | 1628 if (new_ts < 0 || new_ts > 9999) |
1629 { | 1629 { |
1630 semsg(_(e_invalid_argument_str), eap->arg); | 1630 semsg(_(e_invalid_argument_str), eap->arg); |