clang/"Dead assignment": screen.c

Vim 8.1 source has equivalent structure (this isn't a case of accidental
regression), but it depends on FEAT_MBYTE.
This commit is contained in:
Justin M. Keyes 2019-01-13 17:34:08 +01:00
parent ddd4ed3ce5
commit 1ec0b9204b

View File

@ -4820,8 +4820,9 @@ static void win_redr_status(win_T *wp, int ignore_pum)
if (wp->w_buffer->b_help
|| wp->w_p_pvw
|| bufIsChanged(wp->w_buffer)
|| wp->w_buffer->b_p_ro)
|| wp->w_buffer->b_p_ro) {
*(p + len++) = ' ';
}
if (wp->w_buffer->b_help) {
STRCPY(p + len, _("[Help]"));
len += (int)STRLEN(p + len);
@ -4836,7 +4837,7 @@ static void win_redr_status(win_T *wp, int ignore_pum)
}
if (wp->w_buffer->b_p_ro) {
STRCPY(p + len, _("[RO]"));
len += (int)STRLEN(p + len);
// len += (int)STRLEN(p + len); // dead assignment
}
this_ru_col = ru_col - (Columns - wp->w_width);