diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-03-08 16:01:15 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-03-08 16:01:15 +0000 |
commit | 41a01fc6296c509e25c64bdd7bffa3f1ce8a240c (patch) | |
tree | 579138a06b05acc7d3b41d01e9c5b4979122060a | |
parent | 3ea36830f38eed2d6dad6cb057b3efe772237d5e (diff) | |
parent | 41b31fe2401465916e186ea6e111ed394fcc6c86 (diff) | |
download | rtmux-41a01fc6296c509e25c64bdd7bffa3f1ce8a240c.tar.gz rtmux-41a01fc6296c509e25c64bdd7bffa3f1ce8a240c.tar.bz2 rtmux-41a01fc6296c509e25c64bdd7bffa3f1ce8a240c.zip |
Merge branch 'obsd-master'
-rw-r--r-- | options.c | 2 | ||||
-rw-r--r-- | tty.c | 8 |
2 files changed, 3 insertions, 7 deletions
@@ -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 == '@') { @@ -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"); |