mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 19:53:01 +01:00
Fix bug preventing the /clear command from working in Home window
This commit is contained in:
parent
a5246bcbc6
commit
f643975941
@ -286,7 +286,10 @@ static bool prompt_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr)
|
|||||||
if (wcs_to_mbs_buf(line, ctx->line, MAX_STR_SIZE) == -1) {
|
if (wcs_to_mbs_buf(line, ctx->line, MAX_STR_SIZE) == -1) {
|
||||||
line_info_add(self, false, NULL, NULL, SYS_MSG, 0, RED, " * Failed to parse message.");
|
line_info_add(self, false, NULL, NULL, SYS_MSG, 0, RED, " * Failed to parse message.");
|
||||||
} else {
|
} else {
|
||||||
line_info_add(self, false, NULL, NULL, PROMPT, 0, 0, "%s", line);
|
if (strcmp(line, "/clear") != 0) {
|
||||||
|
line_info_add(self, false, NULL, NULL, PROMPT, 0, 0, "%s", line);
|
||||||
|
}
|
||||||
|
|
||||||
execute(ctx->history, self, m, line, GLOBAL_COMMAND_MODE);
|
execute(ctx->history, self, m, line, GLOBAL_COMMAND_MODE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user