summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-04-15 22:10:13 +0000
committernicm <nicm@openbsd.org>2015-04-15 22:10:13 +0000
commitce4bcd1ac676b97ed611d0ded81cfe0f353aed03 (patch)
treedd9aa213884bae7eda4b060bdc2353733fe687a5 /usr.bin/tmux/tty.c
parentTest that ping6 fragments with ethernet padding get reassembled (diff)
downloadwireguard-openbsd-ce4bcd1ac676b97ed611d0ded81cfe0f353aed03.tar.xz
wireguard-openbsd-ce4bcd1ac676b97ed611d0ded81cfe0f353aed03.zip
Use tty_term_flag not _has for flags, also fix a typo (position not
permission).
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r--usr.bin/tmux/tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index 6741eef05f9..741b230640d 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.173 2015/02/05 11:46:57 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.174 2015/04/15 22:10:13 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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 {