summaryrefslogtreecommitdiffstats
path: root/tty-term.c
diff options
context:
space:
mode:
authornicm <nicm>2014-02-23 00:53:06 +0000
committernicm <nicm>2014-02-23 00:53:06 +0000
commitf1828921dfed4b7f2ba38b8c4a370b42965c404c (patch)
tree0c9c620bbba87432fae1863661d929acde13d3ec /tty-term.c
parent315d45a0eb596048f2513dab98e4bb47ec1852a4 (diff)
Change terminal-overrides to a server option (now that we have them), it
doesn't make much sense as a session option.
Diffstat (limited to 'tty-term.c')
-rw-r--r--tty-term.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tty-term.c b/tty-term.c
index 8644a845..a66aad83 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -305,7 +305,7 @@ tty_term_override(struct tty_term *term, const char *overrides)
}
struct tty_term *
-tty_term_find(char *name, int fd, const char *overrides, char **cause)
+tty_term_find(char *name, int fd, char **cause)
{
struct tty_term *term;
const struct tty_term_code_entry *ent;
@@ -383,7 +383,10 @@ tty_term_find(char *name, int fd, const char *overrides, char **cause)
break;
}
}
- tty_term_override(term, overrides);
+
+ /* Apply terminal overrides. */
+ s = options_get_string(&global_options, "terminal-overrides");
+ tty_term_override(term, s);
/* Delete curses data. */
del_curterm(cur_term);