diff options
author | ZviRackover <zvirack@gmail.com> | 2018-07-01 22:58:42 +0300 |
---|---|---|
committer | ZviRackover <zvirack@gmail.com> | 2018-08-06 22:27:10 +0300 |
commit | 5cecd7a93aba83cd477519974fc33fadbdcfdc87 (patch) | |
tree | 3d052800def8498c4d26887b881f99e40bb38a46 /src/nvim/fold.c | |
parent | 071aab51488e03a0e09a0a60aec6c0abc0277279 (diff) | |
download | rneovim-5cecd7a93aba83cd477519974fc33fadbdcfdc87.tar.gz rneovim-5cecd7a93aba83cd477519974fc33fadbdcfdc87.tar.bz2 rneovim-5cecd7a93aba83cd477519974fc33fadbdcfdc87.zip |
style: fixing minor issues noted in code review.
Diffstat (limited to 'src/nvim/fold.c')
-rw-r--r-- | src/nvim/fold.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c index 2781643a5d..6aae927483 100644 --- a/src/nvim/fold.c +++ b/src/nvim/fold.c @@ -1763,10 +1763,10 @@ char_u *get_foldtext(win_T *wp, linenr_T lnum, linenr_T lnume, if (text != NULL) { /* Replace unprintable characters, if there are any. But * replace a TAB with a space. */ - for (p = text; *p != NUL; ++p) { - int len; + for (p = text; *p != NUL; p++) { + int len = utfc_ptr2len(p); - if (has_mbyte && (len = (*mb_ptr2len)(p)) > 1) { + if (len > 1) { if (!vim_isprintc(utf_ptr2char(p))) { break; } |