aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2015-04-22 19:50:52 -0300
committerFelipe Oliveira Carvalho <felipekde@gmail.com>2015-04-24 20:37:13 -0300
commitbcfc37ea98136c449077baa8d97e2334da20d9fc (patch)
treefd409abd34a3e08fcddbbea0c4e07f3ec82c7e23 /src/nvim/ops.c
parent2ca8afc74eada76f50ae60dbb0d6f1804d36bed5 (diff)
downloadrneovim-bcfc37ea98136c449077baa8d97e2334da20d9fc.tar.gz
rneovim-bcfc37ea98136c449077baa8d97e2334da20d9fc.tar.bz2
rneovim-bcfc37ea98136c449077baa8d97e2334da20d9fc.zip
Replace vim_isspace() with ascii_isspace() defined in ascii.h
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index bcdc79be72..ed320a4851 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -3901,7 +3901,7 @@ format_lines (
/* put cursor on last non-space */
State = NORMAL; /* don't go past end-of-line */
coladvance((colnr_T)MAXCOL);
- while (curwin->w_cursor.col && vim_isspace(gchar_cursor()))
+ while (curwin->w_cursor.col && ascii_isspace(gchar_cursor()))
dec_cursor();
/* do the formatting, without 'showmode' */
@@ -5007,11 +5007,11 @@ static long line_count_info(char_u *line, long *wc, long *cc, long limit, int eo
for (i = 0; i < limit && line[i] != NUL; ) {
if (is_word) {
- if (vim_isspace(line[i])) {
+ if (ascii_isspace(line[i])) {
words++;
is_word = 0;
}
- } else if (!vim_isspace(line[i]))
+ } else if (!ascii_isspace(line[i]))
is_word = 1;
++chars;
i += (*mb_ptr2len)(line + i);