=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/window-copy.c,v retrieving revision 1.60 retrieving revision 1.61 diff -c -r1.60 -r1.61 *** src/usr.bin/tmux/window-copy.c 2010/06/29 05:24:49 1.60 --- src/usr.bin/tmux/window-copy.c 2010/07/22 21:10:51 1.61 *************** *** 1,4 **** ! /* $OpenBSD: window-copy.c,v 1.60 2010/06/29 05:24:49 tedu Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: window-copy.c,v 1.61 2010/07/22 21:10:51 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 171,177 **** data->searchstr = NULL; wp->flags |= PANE_FREEZE; ! bufferevent_disable(wp->event, EV_READ|EV_WRITE); data->jumptype = WINDOW_COPY_OFF; data->jumpchar = '\0'; --- 171,178 ---- data->searchstr = NULL; wp->flags |= PANE_FREEZE; ! if (wp->fd != -1) ! bufferevent_disable(wp->event, EV_READ|EV_WRITE); data->jumptype = WINDOW_COPY_OFF; data->jumpchar = '\0'; *************** *** 234,240 **** struct window_copy_mode_data *data = wp->modedata; wp->flags &= ~PANE_FREEZE; ! bufferevent_enable(wp->event, EV_READ|EV_WRITE); if (data->searchstr != NULL) xfree(data->searchstr); --- 235,242 ---- struct window_copy_mode_data *data = wp->modedata; wp->flags &= ~PANE_FREEZE; ! if (wp->fd != -1) ! bufferevent_enable(wp->event, EV_READ|EV_WRITE); if (data->searchstr != NULL) xfree(data->searchstr);