diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-01-12 00:19:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-01-12 00:19:33 +0000 |
commit | cd22049551fbe5c7971834224718db85ded3c513 (patch) | |
tree | 9c51882901a218415d94156978905630cfcd414a /usr.bin/tmux/tmux.h | |
parent | 77710e86a4810fdf477b4a175afd9789726cbabd (diff) |
Fix setting the palette of aixterm colours (90-97).
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index d514e7f10b8..b5f37bffd86 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.690 2017/01/11 16:09:57 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.691 2017/01/12 00:19:32 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -860,11 +860,6 @@ struct window_pane { TAILQ_HEAD(window_panes, window_pane); RB_HEAD(window_pane_tree, window_pane); -#define WINDOW_PANE_PALETTE_HAS(wp, c) \ - ((wp) != NULL && (wp)->palette != NULL && \ - ((c) < 0x100 || (c) & COLOUR_FLAG_256) && \ - (wp)->palette[(c) & 0xff] != 0) - /* Window structure. */ struct window { u_int id; @@ -2157,6 +2152,7 @@ void window_set_name(struct window *, const char *); void window_remove_ref(struct window *); void winlink_clear_flags(struct winlink *); int winlink_shuffle_up(struct session *, struct winlink *); +int window_pane_get_palette(const struct window_pane *, int); /* layout.c */ u_int layout_count_cells(struct layout_cell *); |