changeset 25496:63234bdc80e4

Simplify the condition code.
author ulion
date Tue, 25 Dec 2007 04:30:16 +0000
parents 5cbf0cbeef7c
children 68dcca125c25
files libmenu/vf_menu.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmenu/vf_menu.c	Mon Dec 24 16:27:52 2007 +0000
+++ b/libmenu/vf_menu.c	Tue Dec 25 04:30:16 2007 +0000
@@ -59,7 +59,7 @@
   case MP_CMD_MENU : {  // Convert txt cmd from the users into libmenu stuff
     char* arg = cmd->args[0].v.s;
     
-    if(!priv->current->show && !(strcmp(arg,"hide") == 0) )
+    if (!priv->current->show && strcmp(arg,"hide"))
       priv->current->show = 1;
     else if(strcmp(arg,"up") == 0)
       menu_read_cmd(priv->current,MENU_CMD_UP);