1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-03 09:26:45 +02:00

Fix char -> widechar comparisons

This commit is contained in:
jfreegman
2020-11-08 00:07:28 -05:00
parent 32eb7d3040
commit 811fbfbb1e
4 changed files with 22 additions and 22 deletions

View File

@ -856,7 +856,7 @@ static bool friendlist_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr)
return true;
}
if (key == 'h') {
if (key == L'h') {
help_init_menu(self);
return true;
}
@ -879,7 +879,7 @@ static bool friendlist_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr)
/* lock screen and force decision on deletion popup */
if (PendingDelete.active) {
if (key == 'y' || key == 'n') {
if (key == L'y' || key == L'n') {
del_friend_deactivate(m, key);
}
@ -891,7 +891,7 @@ static bool friendlist_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr)
}
switch (key) {
case '\r':
case L'\r':
if (blocklist_view) {
break;
}
@ -914,7 +914,7 @@ static bool friendlist_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr)
del_friend_activate(f);
break;
case 'b':
case L'b':
if (!blocklist_view) {
block_friend(m, f);
} else {