diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-21 11:15:49 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-21 11:15:49 +0000 |
commit | 2c23670300b18f2f799d0602ff5225caa55b0d67 (patch) | |
tree | 317ef925cfd7524d5eb45607e49da7bd05f631b1 /src/gui_gtk_x11.c | |
parent | 3c19b5050040fb74e4e39048f17dce853fdafc08 (diff) |
patch 8.2.3636: Coverity warns for unreachable codev8.2.3636
Problem: Coverity warns for unreachable code.
Solution: Remove unreachable else block.
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r-- | src/gui_gtk_x11.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index 40d7712316..4e89c4e70c 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -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 { |