Copy state directly rather than dereferencing wl (which could be NULL).

pull/243/head
nicm 2015-12-15 14:32:55 +00:00
parent ac9778395f
commit 909b737289
1 changed files with 2 additions and 2 deletions

View File

@ -834,8 +834,8 @@ cmd_find_copy_state(struct cmd_find_state *dst, struct cmd_find_state *src)
{
dst->s = src->s;
dst->wl = src->wl;
dst->idx = dst->wl->idx;
dst->w = dst->wl->window;
dst->idx = src->idx;
dst->w = src->w;
dst->wp = src->wp;
}