diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-31 22:49:24 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-31 22:49:24 +0000 |
commit | 436b5adc9770a2568209dd5ab1f98bd1afc91898 (patch) | |
tree | 623dc85ee9a396b16f939f44d38138f882edc229 /src/indent.c | |
parent | f1474d801bbdb73406dd3d1f931f515f99e86dfa (diff) | |
download | vim-git-436b5adc9770a2568209dd5ab1f98bd1afc91898.tar.gz |
patch 8.2.3961: error messages are spread outv8.2.3961
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
Diffstat (limited to 'src/indent.c')
-rw-r--r-- | src/indent.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/indent.c b/src/indent.c index ed1b7998c..12020f834 100644 --- a/src/indent.c +++ b/src/indent.c @@ -44,7 +44,7 @@ tabstop_set(char_u *var, int **array) if (cp != end) emsg(_(e_positive)); else - semsg(_(e_invarg2), cp); + semsg(_(e_invalid_argument_str), cp); return FAIL; } } @@ -56,7 +56,7 @@ tabstop_set(char_u *var, int **array) ++valcount; continue; } - semsg(_(e_invarg2), var); + semsg(_(e_invalid_argument_str), var); return FAIL; } @@ -73,7 +73,7 @@ tabstop_set(char_u *var, int **array) // Catch negative values, overflow and ridiculous big values. if (n < 0 || n > 9999) { - semsg(_(e_invarg2), cp); + semsg(_(e_invalid_argument_str), cp); vim_free(*array); *array = NULL; return FAIL; @@ -1627,7 +1627,7 @@ ex_retab(exarg_T *eap) } if (new_ts < 0 || new_ts > 9999) { - semsg(_(e_invarg2), eap->arg); + semsg(_(e_invalid_argument_str), eap->arg); return; } if (new_ts == 0) @@ -1736,7 +1736,7 @@ ex_retab(exarg_T *eap) line_breakcheck(); } if (got_int) - emsg(_(e_interr)); + emsg(_(e_interrupted)); #ifdef FEAT_VARTABS // If a single value was given then it can be considered equal to @@ -2095,6 +2095,9 @@ fixthisline(int (*get_the_indent)(void)) } } +/* + * Fix indent for 'lisp' and 'cindent'. + */ void fix_indent(void) { |