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:
parent
18c97a431a
commit
547704b65a
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user