stop normalizing search input; searching and matching are still
case-insensitive. since this was the only use of normalizing input, simplify as well. allows one to exec with mixed case unmatched commands. "works for me" oga@
This commit is contained in:
5
input.c
5
input.c
@@ -22,8 +22,7 @@
|
||||
#include "calmwm.h"
|
||||
|
||||
int
|
||||
input_keycodetrans(KeyCode kc, u_int state,
|
||||
enum ctltype *ctl, char *chr, int normalize)
|
||||
input_keycodetrans(KeyCode kc, u_int state, enum ctltype *ctl, char *chr)
|
||||
{
|
||||
int ks;
|
||||
|
||||
@@ -107,8 +106,6 @@ input_keycodetrans(KeyCode kc, u_int state,
|
||||
return (-1);
|
||||
|
||||
*chr = (char)ks;
|
||||
if (normalize)
|
||||
*chr = tolower(*chr);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user