about summary refs log tree commit diff stats
path: root/command.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-02-18 22:53:07 +0000
committerJames Booth <boothj5@gmail.com>2012-02-18 22:53:07 +0000
commit547704b65aae6771e984a28e214db43a578785e7 (patch)
tree5845fab332285ed790e34c88be9828e43fd2645f /command.c
parent18c97a431afb5421db21759e7ea8496ce0377abf (diff)
downloadprofani-tty-547704b65aae6771e984a28e214db43a578785e7.tar.gz
Handle empty input on start
Diffstat (limited to 'command.c')
-rw-r--r--command.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/command.c b/command.c
index 0424f705..076187de 100644
--- a/command.c
+++ b/command.c
@@ -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];