mirror of
https://github.com/tmux/tmux.git
synced 2025-11-05 18:36:10 +00:00
Sync OpenBSD patchset 648:
copy mode uses the real screen as backing and if it is updated while copying, strange things can happen. So, freeze reading from the pty while in copy mode.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: server-window.c,v 1.13 2009-12-04 22:14:47 tcunha Exp $ */
|
||||
/* $Id: server-window.c,v 1.14 2010-02-26 13:26:44 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@@ -69,7 +69,9 @@ server_window_loop(void)
|
||||
continue;
|
||||
|
||||
TAILQ_FOREACH(wp, &w->panes, entry) {
|
||||
if (wp->fd != -1) {
|
||||
if (wp->fd == -1)
|
||||
continue;
|
||||
if (!(wp->flags & PANE_FREEZE)) {
|
||||
if (server_window_backoff(wp))
|
||||
bufferevent_disable(wp->event, EV_READ);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user