aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
authorokan2015-08-21 16:05:55 +0000
committerokan2015-08-21 16:05:55 +0000
commit8f9cade79c80625750ce285f4715c52c9e646f72 (patch)
treecd019a3ad03f71891c3aa20690fcd92e5e22750a /search.c
parentfc54489831cb2a1eb5b065831e25c6b9eb35fefe (diff)
downloadcwm-8f9cade79c80625750ce285f4715c52c9e646f72.tar.gz
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 '')
-rw-r--r--search.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/search.c b/search.c
index 7f64460..8d5382a 100644
--- a/search.c
+++ b/search.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: search.c,v 1.49 2015/07/12 14:31:47 okan Exp $
+ * $OpenBSD: search.c,v 1.50 2015/08/21 16:05:55 okan Exp $
*/
#include <sys/types.h>
@@ -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