diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2015-04-22 19:12:26 -0300 |
---|---|---|
committer | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2015-04-24 20:37:13 -0300 |
commit | 93bf201119f68b0723ee3f240afa48134cc41399 (patch) | |
tree | e314c40921aa19141cc68b6f6af3e23fa2ca2ef8 /src/nvim/indent.c | |
parent | d350d12a00518aa0d9e3a1d49c6815c3398d882f (diff) | |
download | rneovim-93bf201119f68b0723ee3f240afa48134cc41399.tar.gz rneovim-93bf201119f68b0723ee3f240afa48134cc41399.tar.bz2 rneovim-93bf201119f68b0723ee3f240afa48134cc41399.zip |
Replace vim_iswhite with ascii_iswhite() defined in ascii.h
Diffstat (limited to 'src/nvim/indent.c')
-rw-r--r-- | src/nvim/indent.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nvim/indent.c b/src/nvim/indent.c index 183456d3f7..c1733346fc 100644 --- a/src/nvim/indent.c +++ b/src/nvim/indent.c @@ -118,7 +118,7 @@ int set_indent(int size, int flags) ind_done = 0; // Count as many characters as we can use. - while (todo > 0 && vim_iswhite(*p)) { + while (todo > 0 && ascii_iswhite(*p)) { if (*p == TAB) { tab_pad = (int)curbuf->b_p_ts - (ind_done % (int)curbuf->b_p_ts); @@ -183,7 +183,7 @@ int set_indent(int size, int flags) } // Return if the indent is OK already. - if (!doit && !vim_iswhite(*p) && !(flags & SIN_INSERT)) { + if (!doit && !ascii_iswhite(*p) && !(flags & SIN_INSERT)) { return false; } @@ -216,7 +216,7 @@ int set_indent(int size, int flags) // Skip over any additional white space (useful when newindent is less // than old). - while (vim_iswhite(*p)) { + while (ascii_iswhite(*p)) { p++; } } else { @@ -235,7 +235,7 @@ int set_indent(int size, int flags) p = oldline; ind_done = 0; - while (todo > 0 && vim_iswhite(*p)) { + while (todo > 0 && ascii_iswhite(*p)) { if (*p == TAB) { tab_pad = (int)curbuf->b_p_ts - (ind_done % (int)curbuf->b_p_ts); @@ -328,7 +328,7 @@ int copy_indent(int size, char_u *src) s = src; // Count/copy the usable portion of the source line. - while (todo > 0 && vim_iswhite(*s)) { + while (todo > 0 && ascii_iswhite(*s)) { if (*s == TAB) { tab_pad = (int)curbuf->b_p_ts - (ind_done % (int)curbuf->b_p_ts); @@ -502,7 +502,7 @@ int inindent(int extra) char_u *ptr; colnr_T col; - for (col = 0, ptr = get_cursor_line_ptr(); vim_iswhite(*ptr); ++col) { + for (col = 0, ptr = get_cursor_line_ptr(); ascii_iswhite(*ptr); ++col) { ptr++; } @@ -688,7 +688,7 @@ int get_lisp_indent(void) amount++; firsttry = amount; - while (vim_iswhite(*that)) { + while (ascii_iswhite(*that)) { amount += lbr_chartabsize(line, that, (colnr_T)amount); that++; } @@ -706,7 +706,7 @@ int get_lisp_indent(void) if (vi_lisp || ((*that != '"') && (*that != '\'') && (*that != '#') && ((*that < '0') || (*that > '9')))) { - while (*that && (!vim_iswhite(*that) || quotecount || parencount) + while (*that && (!ascii_iswhite(*that) || quotecount || parencount) && (!((*that == '(' || *that == '[') && !quotecount && !parencount && vi_lisp))) { if (*that == '"') { @@ -726,7 +726,7 @@ int get_lisp_indent(void) } } - while (vim_iswhite(*that)) { + while (ascii_iswhite(*that)) { amount += lbr_chartabsize(line, that, (colnr_T)amount); that++; } |