1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 08:53:26 +01:00

couple small fixes

This commit is contained in:
Jfreegman 2014-07-30 02:46:08 -04:00
parent 476dec46b6
commit 75708f7600
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
2 changed files with 5 additions and 3 deletions

View File

@ -168,7 +168,7 @@ void execute(WINDOW *w, ToxWindow *self, Tox *m, const char *input, int mode)
if (do_command(w, self, m, num_args, GLOBAL_NUM_COMMANDS, global_commands, args) == 0) if (do_command(w, self, m, num_args, GLOBAL_NUM_COMMANDS, global_commands, args) == 0)
return; return;
/* Just play sound instead */ /* do both in case user has no sound */
/*line_info_add(self, NULL, NULL, NULL, "Invalid command.", SYS_MSG, 0, 0);*/ line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Invalid command.");
notify(self, error, 0); notify(self, error, 0);
} }

View File

@ -23,6 +23,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <libconfig.h> #include <libconfig.h>
#include <ctype.h>
#include "toxic.h" #include "toxic.h"
#include "windows.h" #include "windows.h"
#include "configdir.h" #include "configdir.h"
@ -180,7 +182,7 @@ static int key_parse(const char** bind){
if (len > 5) { if (len > 5) {
if(strncasecmp(*bind, "ctrl+", 5) == 0) if(strncasecmp(*bind, "ctrl+", 5) == 0)
return bind[0][5] - 'A' + 1; return toupper(bind[0][5]) - 'A' + 1;
} }
if (strncasecmp(*bind, "tab", 3) == 0) if (strncasecmp(*bind, "tab", 3) == 0)