=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/options.c,v retrieving revision 1.31 retrieving revision 1.32 diff -c -r1.31 -r1.32 *** src/usr.bin/tmux/options.c 2017/01/24 19:11:46 1.31 --- src/usr.bin/tmux/options.c 2017/01/30 21:41:17 1.32 *************** *** 1,4 **** ! /* $OpenBSD: options.c,v 1.31 2017/01/24 19:11:46 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: options.c,v 1.32 2017/01/30 21:41:17 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott *************** *** 325,331 **** } const char * ! options_tostring(struct options_entry *o, int idx) { static char s[1024]; const char *tmp; --- 325,331 ---- } const char * ! options_tostring(struct options_entry *o, int idx, int numeric) { static char s[1024]; const char *tmp; *************** *** 355,361 **** tmp = attributes_tostring(o->number); break; case OPTIONS_TABLE_FLAG: ! tmp = (o->number ? "on" : "off"); break; case OPTIONS_TABLE_CHOICE: tmp = o->tableentry->choices[o->number]; --- 355,364 ---- tmp = attributes_tostring(o->number); break; case OPTIONS_TABLE_FLAG: ! if (numeric) ! xsnprintf(s, sizeof s, "%lld", o->number); ! else ! tmp = (o->number ? "on" : "off"); break; case OPTIONS_TABLE_CHOICE: tmp = o->tableentry->choices[o->number];