aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2019-09-15 21:42:57 +0000
committernicm <nicm>2019-09-15 21:42:57 +0000
commit63e07b245f898af17657c4655f1251aa43e19d0c (patch)
tree6c2db5b222dac64b3804e8b6731fa210f79f4548 /tmux.h
parenta23ce1b45ff8b8999e2817c9e747188c559725e1 (diff)
downloadrtmux-63e07b245f898af17657c4655f1251aa43e19d0c.tar.gz
rtmux-63e07b245f898af17657c4655f1251aa43e19d0c.tar.bz2
rtmux-63e07b245f898af17657c4655f1251aa43e19d0c.zip
Add push-default and pop-default in styles to change the default colours
and attributes and use them to restore the previous behaviour of window-status-style being the default for window-status-format in the status line. From John Drouhard in GitHub issue 1912.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/tmux.h b/tmux.h
index 2b69b002..5f7e5104 100644
--- a/tmux.h
+++ b/tmux.h
@@ -680,6 +680,13 @@ struct style_range {
};
TAILQ_HEAD(style_ranges, style_range);
+/* Style default. */
+enum style_default_type {
+ STYLE_DEFAULT_BASE,
+ STYLE_DEFAULT_PUSH,
+ STYLE_DEFAULT_POP
+};
+
/* Style option. */
struct style {
struct grid_cell gc;
@@ -690,6 +697,8 @@ struct style {
enum style_range_type range_type;
u_int range_argument;
+
+ enum style_default_type default_type;
};
/* Virtual screen. */
@@ -2648,8 +2657,6 @@ int style_parse(struct style *,const struct grid_cell *,
const char *style_tostring(struct style *);
void style_apply(struct grid_cell *, struct options *,
const char *);
-void style_apply_update(struct grid_cell *, struct options *,
- const char *);
int style_equal(struct style *, struct style *);
void style_set(struct style *, const struct grid_cell *);
void style_copy(struct style *, struct style *);