summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-31 22:49:24 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-31 22:49:24 +0000
commit436b5adc9770a2568209dd5ab1f98bd1afc91898 (patch)
tree623dc85ee9a396b16f939f44d38138f882edc229 /src/window.c
parentf1474d801bbdb73406dd3d1f931f515f99e86dfa (diff)
downloadvim-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/window.c')
-rw-r--r--src/window.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c
index ca35e5bc8..51055b4bc 100644
--- a/src/window.c
+++ b/src/window.c
@@ -6990,7 +6990,7 @@ check_colorcolumn(win_T *wp)
col = (*s == '-') ? -1 : 1;
++s;
if (!VIM_ISDIGIT(*s))
- return e_invarg;
+ return e_invalid_argument;
col = col * getdigits(&s);
if (wp->w_buffer->b_p_tw == 0)
goto skip; // 'textwidth' not set, skip this item
@@ -7001,15 +7001,15 @@ check_colorcolumn(win_T *wp)
else if (VIM_ISDIGIT(*s))
col = getdigits(&s);
else
- return e_invarg;
+ return e_invalid_argument;
color_cols[count++] = col - 1; // 1-based to 0-based
skip:
if (*s == NUL)
break;
if (*s != ',')
- return e_invarg;
+ return e_invalid_argument;
if (*++s == NUL)
- return e_invarg; // illegal trailing comma as in "set cc=80,"
+ return e_invalid_argument; // illegal trailing comma as in "set cc=80,"
}
vim_free(wp->w_p_cc_cols);