coverity/109843: Nesting indent mismatch: RI.

Introduction of asserts broke bracketless if's.
This commit is contained in:
Eliseo Martínez
2015-04-28 19:45:33 +02:00
parent a903407471
commit 87b4093970

View File

@@ -5454,12 +5454,14 @@ static void nv_replace(cmdarg_T *cap)
if (cap->nchar == Ctrl_E || cap->nchar == Ctrl_Y) {
int c = ins_copychar(curwin->w_cursor.lnum
+ (cap->nchar == Ctrl_Y ? -1 : 1));
if (c != NUL)
if (c != NUL) {
assert(c >= 0 && c <= UCHAR_MAX);
ptr[curwin->w_cursor.col] = (char_u)c;
} else
}
} else {
assert(cap->nchar >= 0 && cap->nchar <= UCHAR_MAX);
ptr[curwin->w_cursor.col] = (char_u)cap->nchar;
}
if (p_sm && msg_silent == 0)
showmatch(cap->nchar);
++curwin->w_cursor.col;