mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
style: fixing minor issues noted in code review.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user