Update of /cvsroot/tmux/tmux
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv28031
Modified Files:
window-copy.c
Log Message:
Don't enable/disable invalid event pointers. Fixes SF #3033119.
Index: window-copy.c
===================================================================
RCS file: /cvsroot/tmux/tmux/window-copy.c,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -d -r1.121 -r1.122
--- window-copy.c 2 Jul 2010 02:56:07 -0000 1.121
+++ window-copy.c 22 Jul 2010 19:51:48 -0000 1.122
@@ -171,7 +171,8 @@
data->searchstr = NULL;
wp->flags |= PANE_FREEZE;
- bufferevent_disable(wp->event, EV_READ|EV_WRITE);
+ if (wp->fd != -1)
+ bufferevent_disable(wp->event, EV_READ|EV_WRITE);
data->jumptype = WINDOW_COPY_OFF;
data->jumpchar = '\0';
@@ -234,7 +235,8 @@
struct window_copy_mode_data *data = wp->modedata;
wp->flags &= ~PANE_FREEZE;
- bufferevent_enable(wp->event, EV_READ|EV_WRITE);
+ if (wp->fd != -1)
+ bufferevent_enable(wp->event, EV_READ|EV_WRITE);
if (data->searchstr != NULL)
xfree(data->searchstr);
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs