diff options
author | James Booth <boothj5@gmail.com> | 2012-04-26 23:27:40 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-04-26 23:27:40 +0100 |
commit | a41dab3d3c8ba290e2ae5c715844d9432ec9220b (patch) | |
tree | a635da8411859904fbe88b6a609dfa3bd8815bc3 /command.c | |
parent | 381d4b8dc9cb77640e5968c15c2fdf08aa17d6d7 (diff) | |
download | profani-tty-a41dab3d3c8ba290e2ae5c715844d9432ec9220b.tar.gz |
Removed trim method from util
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/command.c b/command.c index ae27ac35..e0e75009 100644 --- a/command.c +++ b/command.c @@ -47,13 +47,14 @@ gboolean process_input(char *inp) { gboolean result = FALSE; + g_strstrip(inp); + if (strlen(inp) > 0) history_append(inp); if (strlen(inp) == 0) { result = TRUE; } else if (inp[0] == '/') { - trim(inp); char inp_cpy[strlen(inp) + 1]; strcpy(inp_cpy, inp); char *command = strtok(inp_cpy, " "); |