mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-05 18:06:46 +02:00
Manually merged my earlier commits with upstream
This commit is contained in:
7
prompt.c
7
prompt.c
@ -52,6 +52,13 @@ static void execute(ToxWindow *self, char *u_cmd)
|
||||
cmd[i - newlines] = u_cmd[i];
|
||||
}
|
||||
|
||||
if (cmd[0] == '/') {
|
||||
int i;
|
||||
for (i = i1; i < strlen(cmd); i++) { //This doesn't work when it doesn't end with a space and another word
|
||||
cmd[i - 1] = cmd[i]; //Still working on why
|
||||
}
|
||||
}
|
||||
|
||||
if (!strcmp(cmd, "quit") || !strcmp(cmd, "exit") || !strcmp(cmd, "q")) {
|
||||
endwin();
|
||||
exit(0);
|
||||
|
Reference in New Issue
Block a user