libgrapheme

unicode string library
git clone git://git.suckless.org/libgrapheme
Log | Files | Refs | README | LICENSE

commit 5910bc61b6f065cab26682993a76904c37a0f86b
parent c6835a3d2ff116fdf0eaa06546910372d5dd2fc3
Author: Laslo Hunhold <dev@frign.de>
Date:   Thu,  9 Jun 2022 11:12:04 +0200

Remove redundant branch

Thanks NRK for spotting this!

Signed-off-by: Laslo Hunhold <dev@frign.de>

Diffstat:
Msrc/character.c | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/character.c b/src/character.c @@ -192,12 +192,7 @@ grapheme_next_character_break(const uint_least32_t *str, size_t len) } } - /* with no breaks we break at the end */ - if (off == len) { - return len; - } else { - return off; - } + return off; } size_t