1
0
forked from aniani/vim

patch 8.2.3636: Coverity warns for unreachable code

Problem:    Coverity warns for unreachable code.
Solution:   Remove unreachable else block.
This commit is contained in:
Bram Moolenaar
2021-11-21 11:15:49 +00:00
parent 3c19b50500
commit 2c23670300
2 changed files with 3 additions and 5 deletions

View File

@@ -5604,7 +5604,7 @@ gui_gtk2_draw_string(int row, int col, char_u *s, int len, int flags)
{
slen++; // ligature char by char
}
else if (is_utf8)
else // is_utf8
{
if ((*(cs + slen) & 0xC0) == 0x80)
{
@@ -5638,10 +5638,6 @@ gui_gtk2_draw_string(int row, int col, char_u *s, int len, int flags)
slen++;
}
}
else
{
slen++;
}
}
else
{