mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 09:53:26 +01:00
couple small fixes
This commit is contained in:
parent
476dec46b6
commit
75708f7600
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user