summary refs log tree commit diff
path: root/search.c
diff options
context:
space:
mode:
authorokan <okan>2015-08-21 16:05:55 +0000
committerokan <okan>2015-08-21 16:05:55 +0000
commitc96fd247dd951cbbb5ea27a6be3f57f243e2d32a (patch)
treeb398ef51ae1c619370b2739d981bfb9b0b49db54 /search.c
parenta79253abdc9a66fb22e1e88c9514013605610daa (diff)
downloadcwm-c96fd247dd951cbbb5ea27a6be3f57f243e2d32a.tar.gz
cwm-c96fd247dd951cbbb5ea27a6be3f57f243e2d32a.tar.xz
cwm-c96fd247dd951cbbb5ea27a6be3f57f243e2d32a.zip
Instead of special casing the 'term' and 'lock' commands, go back to
keeping them hidden; showing them has apparently caused confusion/angst.
Diffstat (limited to 'search.c')
-rw-r--r--search.c8
1 files changed, 1 insertions, 7 deletions
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