From c96fd247dd951cbbb5ea27a6be3f57f243e2d32a Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 21 Aug 2015 16:05:55 +0000 Subject: Instead of special casing the 'term' and 'lock' commands, go back to keeping them hidden; showing them has apparently caused confusion/angst. --- search.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'search.c') diff --git a/search.c b/search.c index a960076..3192bff 100644 --- a/search.c +++ b/search.c @@ -127,14 +127,8 @@ void search_print_cmd(struct menu *mi, int i) { struct cmd *cmd = (struct cmd *)mi->ctx; - int special = 0; - if ((strcmp(cmd->name, "lock") == 0) || - (strcmp(cmd->name, "term") == 0)) - special = 1; - - (void)snprintf(mi->print, sizeof(mi->print), - (special) ? "[%s]" : "%s", cmd->name); + (void)snprintf(mi->print, sizeof(mi->print), "%s", cmd->name); } void -- cgit 1.4.1