From c33f670da20a0e8f1832ea7227b19f5b6f5a7beb Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 28 Jun 2024 20:25:26 +0200 Subject: refactor: remove special-case conversion for german sharp s The comment "German sharp s is lower case but has no upper case equivalent." is no longer true and is therefore not needed anymore. --- src/nvim/mbyte.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index c0bbd3e053..e9004c3b8f 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -1352,8 +1352,7 @@ int mb_toupper(int a) bool mb_islower(int a) { - // German sharp s is lower case but has no upper case equivalent. - return (mb_toupper(a) != a) || a == 0xdf; + return mb_toupper(a) != a; } /// Return the lower-case equivalent of "a", which is a UCS-4 character. Use -- cgit