1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05: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

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