AmendHub

Download:

jcs

/

subtext

/

amendments

/

158

settings: struct_editor: Allow lowercase option letter, too


jcs made amendment 158 over 2 years ago
--- settings.c Sun Jun 12 22:25:20 2022 +++ settings.c Tue Jun 21 16:23:52 2022 @@ -129,12 +129,12 @@ get_menu_option: for (n = 0; n < nfields; n++) { sf = &fields[n]; - if (n > 9) - co = 'A' + (n - 9); - else - co = '0' + n; + if (n <= 9 && c == '0' + n) { + found = true; + break; + } - if (c == co) { + if (n > 9 && (c == 'A' + (n - 9) || c == 'a' + (n - 9))) { found = true; break; }