From 75708f760016621463c1dac47d96c8757fa39b2f Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Wed, 30 Jul 2014 02:46:08 -0400 Subject: [PATCH] couple small fixes --- src/execute.c | 4 ++-- src/settings.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/execute.c b/src/execute.c index 11da31b..d4547fd 100644 --- a/src/execute.c +++ b/src/execute.c @@ -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) return; - /* Just play sound instead */ - /*line_info_add(self, NULL, NULL, NULL, "Invalid command.", SYS_MSG, 0, 0);*/ + /* do both in case user has no sound */ + line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Invalid command."); notify(self, error, 0); } diff --git a/src/settings.c b/src/settings.c index 0a6724e..d0b520c 100644 --- a/src/settings.c +++ b/src/settings.c @@ -23,6 +23,8 @@ #include #include #include +#include + #include "toxic.h" #include "windows.h" #include "configdir.h" @@ -180,7 +182,7 @@ static int key_parse(const char** bind){ if (len > 5) { 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)