mirror of
https://github.com/tmux/tmux.git
synced 2024-12-14 02:48:47 +00:00
Don't enable/disable invalid event pointers. Fixes SF #3033119.
This commit is contained in:
parent
28c4c86589
commit
1944747759
@ -1,4 +1,4 @@
|
|||||||
/* $Id: window-copy.c,v 1.121 2010-07-02 02:56:07 tcunha Exp $ */
|
/* $Id: window-copy.c,v 1.122 2010-07-22 19:51:48 micahcowan Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -171,6 +171,7 @@ window_copy_init(struct window_pane *wp)
|
|||||||
data->searchstr = NULL;
|
data->searchstr = NULL;
|
||||||
|
|
||||||
wp->flags |= PANE_FREEZE;
|
wp->flags |= PANE_FREEZE;
|
||||||
|
if (wp->fd != -1)
|
||||||
bufferevent_disable(wp->event, EV_READ|EV_WRITE);
|
bufferevent_disable(wp->event, EV_READ|EV_WRITE);
|
||||||
|
|
||||||
data->jumptype = WINDOW_COPY_OFF;
|
data->jumptype = WINDOW_COPY_OFF;
|
||||||
@ -234,6 +235,7 @@ window_copy_free(struct window_pane *wp)
|
|||||||
struct window_copy_mode_data *data = wp->modedata;
|
struct window_copy_mode_data *data = wp->modedata;
|
||||||
|
|
||||||
wp->flags &= ~PANE_FREEZE;
|
wp->flags &= ~PANE_FREEZE;
|
||||||
|
if (wp->fd != -1)
|
||||||
bufferevent_enable(wp->event, EV_READ|EV_WRITE);
|
bufferevent_enable(wp->event, EV_READ|EV_WRITE);
|
||||||
|
|
||||||
if (data->searchstr != NULL)
|
if (data->searchstr != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user