mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-29 19:56:07 -04:00
Handle empty input on start
This commit is contained in:
parent
18c97a431a
commit
547704b65a
@ -16,6 +16,12 @@ static int _valid_start_command(char *cmd);
|
|||||||
int handle_start_command(char *inp)
|
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];
|
||||||
|
Loading…
Reference in New Issue
Block a user