1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-16 12:06:35 +01: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

@@ -356,12 +356,12 @@ void help_onKey(ToxWindow *self, wint_t key)
int height;
switch (key) {
case 'x':
case L'x':
case T_KEY_ESC:
help_exit(self);
break;
case 'c':
case L'c':
#ifdef VIDEO
help_init_window(self, 23, 80);
#elif AUDIO
@@ -372,7 +372,7 @@ void help_onKey(ToxWindow *self, wint_t key)
self->help->type = HELP_CHAT;
break;
case 'g':
case L'g':
height = 22;
#ifdef VIDEO
height += 8;
@@ -386,30 +386,30 @@ void help_onKey(ToxWindow *self, wint_t key)
self->help->type = HELP_GLOBAL;
break;
case 'r':
case L'r':
help_init_window(self, 6, 80);
self->help->type = HELP_GROUP;
break;
#ifdef PYTHON
case 'p':
case L'p':
help_init_window(self, 4 + num_registered_handlers(), help_max_width());
self->help->type = HELP_PLUGIN;
break;
#endif /* PYTHON */
case 'f':
case L'f':
help_init_window(self, 10, 80);
self->help->type = HELP_CONTACTS;
break;
case 'k':
case L'k':
help_init_window(self, 15, 80);
self->help->type = HELP_KEYS;
break;
case 'm':
case L'm':
help_init_menu(self);
self->help->type = HELP_MENU;
break;