=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/window-customize.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- src/usr.bin/tmux/window-customize.c 2020/09/18 11:20:59 1.7 +++ src/usr.bin/tmux/window-customize.c 2021/01/18 11:14:24 1.8 @@ -1,4 +1,4 @@ -/* $OpenBSD: window-customize.c,v 1.7 2020/09/18 11:20:59 nicm Exp $ */ +/* $OpenBSD: window-customize.c,v 1.8 2021/01/18 11:14:24 nicm Exp $ */ /* * Copyright (c) 2020 Nicholas Marriott @@ -190,13 +190,6 @@ u_int idx; switch (scope) { - case WINDOW_CUSTOMIZE_NONE: - case WINDOW_CUSTOMIZE_KEY: - case WINDOW_CUSTOMIZE_SERVER: - case WINDOW_CUSTOMIZE_GLOBAL_SESSION: - case WINDOW_CUSTOMIZE_GLOBAL_WINDOW: - s = xstrdup(""); - break; case WINDOW_CUSTOMIZE_PANE: window_pane_index(fs->wp, &idx); xasprintf(&s, "pane %u", idx); @@ -206,6 +199,9 @@ break; case WINDOW_CUSTOMIZE_WINDOW: xasprintf(&s, "window %u", fs->wl->idx); + break; + default: + s = xstrdup(""); break; } return (s);