aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2015-04-15 22:10:13 +0000
committernicm <nicm>2015-04-15 22:10:13 +0000
commiteec27f9257976d063db279594bff264c2e32d52c (patch)
tree6fb6265c9b3d0f77bede5dc121b9d65e4e13f306 /tty.c
parentf922920609063ff5ac1ee11a48bf8f1bd13e8d16 (diff)
downloadrtmux-eec27f9257976d063db279594bff264c2e32d52c.tar.gz
rtmux-eec27f9257976d063db279594bff264c2e32d52c.tar.bz2
rtmux-eec27f9257976d063db279594bff264c2e32d52c.zip
Use tty_term_flag not _has for flags, also fix a typo (position not
permission).
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index 1bb89811..05d422d0 100644
--- a/tty.c
+++ b/tty.c
@@ -629,7 +629,7 @@ tty_draw_line(struct tty *tty, struct screen *s, u_int py, u_int ox, u_int oy)
sx = tty->sx;
/*
- * Don't move the cursor to the start permission if it will wrap there
+ * Don't move the cursor to the start position if it will wrap there
* itself.
*/
gl = NULL;
@@ -1407,7 +1407,7 @@ tty_colours(struct tty *tty, const struct grid_cell *gc)
*
* Otherwise, try to set the default colour only as needed.
*/
- have_ax = tty_term_has(tty->term, TTYC_AX);
+ have_ax = tty_term_flag(tty->term, TTYC_AX);
if (!have_ax && tty_term_has(tty->term, TTYC_OP))
tty_reset(tty);
else {