diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-01-13 17:34:08 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-01-13 19:57:52 +0100 |
commit | 1ec0b9204ba2187c860566e3169d23337caab386 (patch) | |
tree | b0c0310c9ddc4732700f1a7359ff9a534110acc1 | |
parent | ddd4ed3ce57027eeee72041e98f7bf576b01a370 (diff) | |
download | rneovim-1ec0b9204ba2187c860566e3169d23337caab386.tar.gz rneovim-1ec0b9204ba2187c860566e3169d23337caab386.tar.bz2 rneovim-1ec0b9204ba2187c860566e3169d23337caab386.zip |
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.
-rw-r--r-- | src/nvim/screen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index a3f1f00db2..da29522b1b 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -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); |