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:
@@ -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
|
||||
{
|
||||
|
@@ -757,6 +757,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
3636,
|
||||
/**/
|
||||
3635,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user