aboutsummaryrefslogtreecommitdiff
path: root/cmd-set-option.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2014-02-21 08:03:42 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2014-02-21 08:03:42 +0000
commitc310212d28947f35595d945936e04148a39246d8 (patch)
tree93447903c46b28e0bafe6fa234dc245d72bd00a0 /cmd-set-option.c
parent94d99d54629b182a4266d918ccf80e4daee4567b (diff)
parent9120df33efdbaac82c152ed3d5995e2be7a70411 (diff)
downloadrtmux-c310212d28947f35595d945936e04148a39246d8.tar.gz
rtmux-c310212d28947f35595d945936e04148a39246d8.tar.bz2
rtmux-c310212d28947f35595d945936e04148a39246d8.zip
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r--cmd-set-option.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c
index 15b14f08..5ae4e5c3 100644
--- a/cmd-set-option.c
+++ b/cmd-set-option.c
@@ -307,11 +307,13 @@ cmd_set_option_set(struct cmd *self, struct cmd_q *cmdq,
break;
case OPTIONS_TABLE_COLOUR:
o = cmd_set_option_colour(self, cmdq, oe, oo, value);
- style_update_new(oo, o->name, oe->style);
+ if (o != NULL)
+ style_update_new(oo, o->name, oe->style);
break;
case OPTIONS_TABLE_ATTRIBUTES:
o = cmd_set_option_attributes(self, cmdq, oe, oo, value);
- style_update_new(oo, o->name, oe->style);
+ if (o != NULL)
+ style_update_new(oo, o->name, oe->style);
break;
case OPTIONS_TABLE_FLAG:
o = cmd_set_option_flag(self, cmdq, oe, oo, value);