diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-06-27 22:03:33 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-06-27 22:03:33 +0200 |
commit | 108010aa4720ef023a8ac59004fc0f2bc11125af (patch) | |
tree | 831741a42644a86ee0d74679361f74cc27861eaa /src/textprop.c | |
parent | d887297ad0164516dd52cdab0308c3626337d124 (diff) |
patch 8.2.3069: error messages are spread outv8.2.3069
Problem: Error messages are spread out.
Solution: Move some error messages to errors.h. Use clearer names.
Diffstat (limited to 'src/textprop.c')
-rw-r--r-- | src/textprop.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/textprop.c b/src/textprop.c index bd9a77cada..9255003c67 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -549,7 +549,7 @@ f_prop_clear(typval_T *argvars, typval_T *rettv UNUSED) } if (start < 1 || end < 1) { - emsg(_(e_invrange)); + emsg(_(e_invalid_range)); return; } @@ -646,7 +646,7 @@ f_prop_find(typval_T *argvars, typval_T *rettv) if (lnum < 1 || lnum > buf->b_ml.ml_line_count) { - emsg(_(e_invrange)); + emsg(_(e_invalid_range)); return; } @@ -779,7 +779,7 @@ f_prop_list(typval_T *argvars, typval_T *rettv) } if (lnum < 1 || lnum > buf->b_ml.ml_line_count) { - emsg(_(e_invrange)); + emsg(_(e_invalid_range)); return; } @@ -839,7 +839,7 @@ f_prop_remove(typval_T *argvars, typval_T *rettv) end = tv_get_number(&argvars[2]); if (start < 1 || end < 1) { - emsg(_(e_invrange)); + emsg(_(e_invalid_range)); return; } } |