mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07:00
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:
parent
ddd4ed3ce5
commit
1ec0b9204b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user