Merge #6148 from delftswa2017/clang-scan-fix-dead-stores

vim-patch:8.0.0353
This commit is contained in:
Justin M. Keyes
2017-02-28 00:46:09 +01:00
committed by GitHub
5 changed files with 26 additions and 51 deletions

View File

@@ -1406,7 +1406,6 @@ void ins_char_bytes(char_u *buf, size_t charlen)
coladvance_force(getviscol());
}
int c = buf[0];
size_t col = (size_t)curwin->w_cursor.col;
linenr_T lnum = curwin->w_cursor.lnum;
char_u *oldp = ml_get(lnum);
@@ -1499,10 +1498,7 @@ void ins_char_bytes(char_u *buf, size_t charlen)
&& msg_silent == 0
&& !ins_compl_active()
) {
if (has_mbyte)
showmatch(mb_ptr2char(buf));
else
showmatch(c);
showmatch(mb_ptr2char(buf));
}
if (!p_ri || (State & REPLACE_FLAG)) {