From 882316ad6a771112e666126f00b8781c79ed8d30 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 30 Jan 2009 00:24:49 +0000 Subject: Set colour of window entry in status line based on window options. --- cmd-set-option.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'cmd-set-option.c') diff --git a/cmd-set-option.c b/cmd-set-option.c index c7940639..1dc8afb5 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -1,4 +1,4 @@ -/* $Id: cmd-set-option.c,v 1.57 2009-01-27 20:22:33 nicm Exp $ */ +/* $Id: cmd-set-option.c,v 1.58 2009-01-30 00:24:49 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -125,11 +125,7 @@ cmd_set_option_exec(struct cmd *self, struct cmd_ctx *ctx) return (-1); } - if (options_remove(oo, entry->name) != 0) { - ctx->error(ctx, - "can't unset option, not set: %s", entry->name); - return (-1); - } + options_remove(oo, entry->name); ctx->info(ctx, "unset option: %s", entry->name); } else { switch (entry->type) { -- cgit