summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-02-06 19:45:24 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-02-06 19:45:24 +0000
commit10bc0285047d2ecd0dab92738762b8f9e5658305 (patch)
tree54f3cdbbbf828a1f3e854fac2126a12d3db7df48 /usr.bin/tmux/tmux.h
parentc68eea91363fc8c27d7dd96adf01082c3d0054b7 (diff)
Do not go through the whole attributes setting process if the new cell
is the same as the previous one.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 038dfa568d8..a220a4fa27c 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.715 2017/02/06 19:26:49 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.716 2017/02/06 19:45:23 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1054,6 +1054,9 @@ struct tty {
struct grid_cell cell;
+ int last_wp;
+ struct grid_cell last_cell;
+
#define TTY_NOCURSOR 0x1
#define TTY_FREEZE 0x2
#define TTY_TIMER 0x4