aboutsummaryrefslogtreecommitdiff
path: root/tty-term.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-23 10:22:53 +0000
committernicm <nicm>2020-04-23 10:22:53 +0000
commit766b425d051a833dac768d6dc9eafc87a3f03146 (patch)
treebee0574c95133cfba5d3a3b45f7216e65676463c /tty-term.c
parente25fa4ba1b62bb2e4395bd2ff9c40da409fec51f (diff)
downloadrtmux-766b425d051a833dac768d6dc9eafc87a3f03146.tar.gz
rtmux-766b425d051a833dac768d6dc9eafc87a3f03146.tar.bz2
rtmux-766b425d051a833dac768d6dc9eafc87a3f03146.zip
Overrides need to be applied both before and after features in case they
change flags used to detect a feature.
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tty-term.c b/tty-term.c
index f4a18b63..f3dbae5c 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -528,6 +528,9 @@ tty_term_create(struct tty *tty, char *name, int *feat, int fd, char **cause)
/* Delete curses data. */
del_curterm(cur_term);
+ /* Apply overrides so any capabilities used for features are changed. */
+ tty_term_apply_overrides(term);
+
/* These are always required. */
if (!tty_term_has(term, TTYC_CLEAR)) {
xasprintf(cause, "terminal does not support clear");
@@ -554,7 +557,7 @@ tty_term_create(struct tty *tty, char *name, int *feat, int fd, char **cause)
if (tty_term_flag(term, TTYC_XT))
tty_add_features(feat, "title", ":,");
- /* Apply the features and overrides. */
+ /* Apply the features and overrides again. */
tty_apply_features(term, *feat);
tty_term_apply_overrides(term);