1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00

Handle empty input on start

This commit is contained in:
James Booth 2012-02-18 22:53:07 +00:00
parent 18c97a431a
commit 547704b65a

View File

@ -16,6 +16,12 @@ static int _valid_start_command(char *cmd);
int handle_start_command(char *inp)
{
int result;
// handle nothing
if (strlen(inp) == 0) {
gui_refresh();
return AWAIT_COMMAND;
}
// trim input and take a copy
char inp_cpy[100];