aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-03-08 16:01:15 +0000
committerThomas Adam <thomas@xteddy.org>2017-03-08 16:01:15 +0000
commit41a01fc6296c509e25c64bdd7bffa3f1ce8a240c (patch)
tree579138a06b05acc7d3b41d01e9c5b4979122060a
parent3ea36830f38eed2d6dad6cb057b3efe772237d5e (diff)
parent41b31fe2401465916e186ea6e111ed394fcc6c86 (diff)
downloadrtmux-41a01fc6296c509e25c64bdd7bffa3f1ce8a240c.tar.gz
rtmux-41a01fc6296c509e25c64bdd7bffa3f1ce8a240c.tar.bz2
rtmux-41a01fc6296c509e25c64bdd7bffa3f1ce8a240c.zip
Merge branch 'obsd-master'
-rw-r--r--options.c2
-rw-r--r--tty.c8
2 files changed, 3 insertions, 7 deletions
diff --git a/options.c b/options.c
index 4de25937..4cd3ea10 100644
--- a/options.c
+++ b/options.c
@@ -427,6 +427,8 @@ options_match(const char *s, int *idx, int* ambiguous)
size_t namelen;
name = options_parse(s, idx);
+ if (name == NULL)
+ return (NULL);
namelen = strlen(name);
if (*name == '@') {
diff --git a/tty.c b/tty.c
index acc7ab54..0ed6125e 100644
--- a/tty.c
+++ b/tty.c
@@ -235,7 +235,7 @@ tty_start_tty(struct tty *tty)
tty_putcode(tty, TTYC_SMCUP);
- tty_putcode(tty, TTYC_RMKX);
+ tty_putcode(tty, TTYC_SMKX);
if (tty_use_acs(tty))
tty_putcode(tty, TTYC_ENACS);
tty_putcode(tty, TTYC_CLEAR);
@@ -573,12 +573,6 @@ tty_update_mode(struct tty *tty, int mode, struct screen *s)
tty_puts(tty, "\033[?1006l");
}
}
- if (changed & MODE_KKEYPAD) {
- if (mode & MODE_KKEYPAD)
- tty_putcode(tty, TTYC_SMKX);
- else
- tty_putcode(tty, TTYC_RMKX);
- }
if (changed & MODE_BRACKETPASTE) {
if (mode & MODE_BRACKETPASTE)
tty_puts(tty, "\033[?2004h");