diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2015-04-25 13:34:30 -0300 |
---|---|---|
committer | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2015-04-25 13:37:44 -0300 |
commit | 0bce4dc54427d05ab320a88f6269a9c1b05ea899 (patch) | |
tree | 4a3aff2749eb0b70b7947ecfc7cd56d56ad4e29d /src/nvim/screen.c | |
parent | d350d12a00518aa0d9e3a1d49c6815c3398d882f (diff) | |
parent | c96b933acc4d9ec7382d451055e44c85959772b9 (diff) | |
download | rneovim-0bce4dc54427d05ab320a88f6269a9c1b05ea899.tar.gz rneovim-0bce4dc54427d05ab320a88f6269a9c1b05ea899.tar.bz2 rneovim-0bce4dc54427d05ab320a88f6269a9c1b05ea899.zip |
Merge #2486: Replacements for vim_iswhite, VIM_ISDIGIT, vim_isdigit, vim_isxdigit, and vim_isspace
Reviewed-by: Michael Reed <m.reed@mykolab.com>
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index acd8e925e0..c9a2e147dc 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -2401,7 +2401,7 @@ win_line ( /* find start of trailing whitespace */ if (wp->w_p_list && lcs_trail) { trailcol = (colnr_T)STRLEN(ptr); - while (trailcol > (colnr_T)0 && vim_iswhite(ptr[trailcol - 1])) + while (trailcol > (colnr_T)0 && ascii_iswhite(ptr[trailcol - 1])) --trailcol; trailcol += (colnr_T) (ptr - line); extra_check = TRUE; @@ -3319,7 +3319,7 @@ win_line ( - vcol % (int)wp->w_buffer->b_p_ts - 1; } c_extra = ' '; - if (vim_iswhite(c)) { + if (ascii_iswhite(c)) { if (c == TAB) /* See "Tab alignment" below. */ FIX_FOR_BOGUSCOLS; @@ -4977,7 +4977,7 @@ win_redr_custom ( if (*++stl == '-') stl++; if (atoi((char *)stl)) - while (VIM_ISDIGIT(*stl)) + while (ascii_isdigit(*stl)) stl++; if (*stl++ != '(') stl = p_ruf; |