Store copy mode search string in pane so search-again command works even

if you exit and reenter copy mode (it doesn't remember the position,
just the search string), suggested by espie@.
This commit is contained in:
nicm
2017-05-12 10:45:38 +00:00
parent c0d3f204b0
commit 7d3e2c83d4
3 changed files with 13 additions and 17 deletions

View File

@ -828,6 +828,7 @@ static void
window_pane_destroy(struct window_pane *wp)
{
window_pane_reset_mode(wp);
free(wp->searchstr);
if (wp->fd != -1) {
bufferevent_free(wp->event);