summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-05-09 13:04:36 +0000
committernicm <nicm@openbsd.org>2017-05-09 13:04:36 +0000
commit85789290275a8ea46af594755e2b34e92ea37696 (patch)
treeaafae6abf265946d10c65503ac4e7191c8b821ac /usr.bin/tmux/tmux.h
parentDocument that patches are cumulative and as such it is not possible to install (diff)
downloadwireguard-openbsd-85789290275a8ea46af594755e2b34e92ea37696.tar.xz
wireguard-openbsd-85789290275a8ea46af594755e2b34e92ea37696.zip
If the current screen was complex enough, it was possible to make redraw
itself hit the "terminal can't keep up" check. To avoid this, record how much data we send during redraw (we know we will be starting with 0) and skip the check until it has been flushed. GitHub issue 912.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 55eb9935177..24607681778 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.760 2017/05/07 22:27:57 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.761 2017/05/09 13:04:36 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1306,6 +1306,7 @@ struct client {
size_t written;
size_t discarded;
+ size_t redraw;
void (*stdin_callback)(struct client *, int, void *);
void *stdin_callback_data;