summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-11 03:48:50 -0500
committerJune McEnroe <june@causal.agency>2020-02-11 03:48:50 -0500
commit86fac7caadfbefa6f044314d440deefb480133d7 (patch)
tree816e9e9c5aaa1453bb5815a0d04315ec64b17478
parentCast set but unused variables to void (diff)
downloadcatgirl-86fac7caadfbefa6f044314d440deefb480133d7.tar.gz
catgirl-86fac7caadfbefa6f044314d440deefb480133d7.zip
Cast towupper to wchar_t
For some reason it takes and returns wint_t...
-rw-r--r--ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.c b/ui.c
index 3017758..34b6f7d 100644
--- a/ui.c
+++ b/ui.c
@@ -843,7 +843,7 @@ static void keyCtrl(wchar_t ch) {
 
 static void keyStyle(wchar_t ch) {
 	size_t id = windows.active->id;
-	switch (iswcntrl(ch) ? ch ^ L'@' : towupper(ch)) {
+	switch (iswcntrl(ch) ? ch ^ L'@' : (wchar_t)towupper(ch)) {
 		break; case L'B': edit(id, EditInsert, B);
 		break; case L'C': edit(id, EditInsert, C);
 		break; case L'I': edit(id, EditInsert, I);
e/.xsession?id=f5da4ffc417212c71b5a3ae8ba5cf4de39aa865b&follow=1'>Set root window to black on purple snowJune McEnroe 2021-02-06Add xmodmap configurationJune McEnroe 2021-02-06Add initial OpenBSD X configurationJune McEnroe cwm still needs a lot more rebinding, and I need to actually look at its other options. xterm definitely still needs some configuration, but I at least managed to get it to use a decent looking font. Very happy that OpenBSD includes Luxi Mono, which is what my usual font, Go Mono, is based on anyway. Still missing is xmodmap and such. 2021-02-06Add xterm output to schemeJune McEnroe