From 9b6136a732114949be57d42ce358f7b3cc2f5bbf Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 25 May 2022 13:15:00 -0700 Subject: *: normalize on all case-insensitive comparisons I don't think rototiller is an appropriate place for being so uncooperative, if someone gets the case wrong anywhere just make it work. We should avoid making different things so subtly different that case alone is the distinction anyways, so I don't see this creating any future namespace collision problems. --- src/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/setup.c') diff --git a/src/setup.c b/src/setup.c index 0791da8..a5b1c70 100644 --- a/src/setup.c +++ b/src/setup.c @@ -78,7 +78,7 @@ int setup_interactively(til_settings_t *settings, int (*setup_func)(til_settings desc->annotations ? ": " : "", desc->annotations ? desc->annotations[i] : ""); - if (!strcmp(desc->preferred, desc->values[i])) + if (!strcasecmp(desc->preferred, desc->values[i])) preferred = i; } -- cgit v1.2.1