=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-show-options.c,v retrieving revision 1.38 retrieving revision 1.39 diff -u -r1.38 -r1.39 --- src/usr.bin/tmux/cmd-show-options.c 2017/01/18 10:08:05 1.38 +++ src/usr.bin/tmux/cmd-show-options.c 2017/01/24 19:11:46 1.39 @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-show-options.c,v 1.38 2017/01/18 10:08:05 nicm Exp $ */ +/* $OpenBSD: cmd-show-options.c,v 1.39 2017/01/24 19:11:46 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -92,11 +92,20 @@ const char *name; const char *value; char *tmp, *escaped; + u_int size, i; if (idx != -1) { xasprintf(&tmp, "%s[%d]", options_name(o), idx); name = tmp; } else { + if (options_array_size(o, &size) != -1) { + for (i = 0; i < size; i++) { + if (options_array_get(o, i) == NULL) + continue; + cmd_show_options_print(self, item, o, i); + } + return; + } tmp = NULL; name = options_name(o); }