From 93bf201119f68b0723ee3f240afa48134cc41399 Mon Sep 17 00:00:00 2001 From: Felipe Oliveira Carvalho Date: Wed, 22 Apr 2015 19:12:26 -0300 Subject: Replace vim_iswhite with ascii_iswhite() defined in ascii.h --- src/nvim/strings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/strings.c') diff --git a/src/nvim/strings.c b/src/nvim/strings.c index 4e70f48860..a1f5b05a56 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; } -- cgit From bcfc37ea98136c449077baa8d97e2334da20d9fc Mon Sep 17 00:00:00 2001 From: Felipe Oliveira Carvalho Date: Wed, 22 Apr 2015 19:50:52 -0300 Subject: Replace vim_isspace() with ascii_isspace() defined in ascii.h --- src/nvim/strings.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/nvim/strings.c') diff --git a/src/nvim/strings.c b/src/nvim/strings.c index a1f5b05a56..de70397c30 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -449,16 +449,6 @@ char_u *vim_strrchr(const char_u *string, int c) return (char_u *) retval; } -/* - * 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. */ -- cgit