summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@profusion.mobi>2012-08-23 05:58:06 +0000
committerLeandro Pereira <leandro@profusion.mobi>2012-08-23 05:58:06 +0000
commitdb0f11758dd03f5e11463a0e93c42fd0d7f00130 (patch)
treef47ae672ad8661883850f607616ddb8de3b7e40c /src
parentddae600684bb21c3e5b71a1cdfd7a7affb4ae3d1 (diff)
terminology: Ignore empty commands
SVN revision: 75590
Diffstat (limited to 'src')
-rw-r--r--src/bin/termcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/termcmd.c b/src/bin/termcmd.c
index fbdeef5..8207d73 100644
--- a/src/bin/termcmd.c
+++ b/src/bin/termcmd.c
@@ -134,7 +134,7 @@ termcmd_watch(Evas_Object *obj, Evas_Object *win, Evas_Object *bg, const char *c
134Eina_Bool 134Eina_Bool
135termcmd_do(Evas_Object *obj, Evas_Object *win, Evas_Object *bg, const char *cmd) 135termcmd_do(Evas_Object *obj, Evas_Object *win, Evas_Object *bg, const char *cmd)
136{ 136{
137 if (!cmd) return EINA_FALSE; 137 if (!cmd || !cmd[0]) return EINA_FALSE;
138 if ((cmd[0] == '/') || (cmd[0] == 's')) 138 if ((cmd[0] == '/') || (cmd[0] == 's'))
139 return _termcmd_search(obj, win, bg, cmd + 1); 139 return _termcmd_search(obj, win, bg, cmd + 1);
140 if ((cmd[0] == 'f') || (cmd[0] == 'F')) 140 if ((cmd[0] == 'f') || (cmd[0] == 'F'))