diff options
Diffstat (limited to 'testing/toxic/prompt.c')
-rw-r--r-- | testing/toxic/prompt.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/toxic/prompt.c b/testing/toxic/prompt.c index 0bdf69fb..486273d3 100644 --- a/testing/toxic/prompt.c +++ b/testing/toxic/prompt.c | |||
@@ -62,6 +62,16 @@ static void execute(ToxWindow *self, char *u_cmd) | |||
62 | if (!isspace(cmd[cmd_end])) | 62 | if (!isspace(cmd[cmd_end])) |
63 | break; | 63 | break; |
64 | cmd[cmd_end + 1] = '\0'; | 64 | cmd[cmd_end + 1] = '\0'; |
65 | |||
66 | /* What is this supposed to do? | ||
67 | if (cmd[0] == '/') { | ||
68 | wprintw(self->window,"Warning: Run your command without the /, this may not work\n"); | ||
69 | int i; | ||
70 | for (i = 1; i < strlen(cmd); i++) { //This doesn't work when it doesn't end with a space and another word | ||
71 | cmd[i - 1] = cmd[i]; //Still working on why | ||
72 | } | ||
73 | } | ||
74 | */ | ||
65 | 75 | ||
66 | if (!strcmp(cmd, "quit") || !strcmp(cmd, "exit") || !strcmp(cmd, "q")) { | 76 | if (!strcmp(cmd, "quit") || !strcmp(cmd, "exit") || !strcmp(cmd, "q")) { |
67 | endwin(); | 77 | endwin(); |