mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Copy state directly rather than dereferencing wl (which could be NULL).
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user