aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/strings.c')
-rw-r--r--src/nvim/strings.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c
index 4e70f48860..de70397c30 100644
--- a/src/nvim/strings.c
+++ b/src/nvim/strings.c
@@ -295,7 +295,7 @@ void del_trailing_spaces(char_u *ptr)
char_u *q;
q = ptr + STRLEN(ptr);
- while (--q > ptr && vim_iswhite(q[0]) && q[-1] != '\\' && q[-1] != Ctrl_V)
+ while (--q > ptr && ascii_iswhite(q[0]) && q[-1] != '\\' && q[-1] != Ctrl_V)
*q = NUL;
}
@@ -450,16 +450,6 @@ char_u *vim_strrchr(const char_u *string, int c)
}
/*
- * Vim has its own isspace() function, because on some machines isspace()
- * can't handle characters above 128.
- */
-bool vim_isspace(int x)
- FUNC_ATTR_CONST
-{
- return (x >= 9 && x <= 13) || x == ' ';
-}
-
-/*
* Sort an array of strings.
*/