mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 01:18:52 +00:00
Remove a reference from the right window when removing from a winlink's
list.
This commit is contained in:
parent
92053cb492
commit
bcd6b41674
2
window.c
2
window.c
@ -186,7 +186,7 @@ winlink_set_window(struct winlink *wl, struct window *w)
|
|||||||
{
|
{
|
||||||
if (wl->window != NULL) {
|
if (wl->window != NULL) {
|
||||||
TAILQ_REMOVE(&wl->window->winlinks, wl, wentry);
|
TAILQ_REMOVE(&wl->window->winlinks, wl, wentry);
|
||||||
window_remove_ref(w);
|
window_remove_ref(wl->window);
|
||||||
}
|
}
|
||||||
TAILQ_INSERT_TAIL(&w->winlinks, wl, wentry);
|
TAILQ_INSERT_TAIL(&w->winlinks, wl, wentry);
|
||||||
wl->window = w;
|
wl->window = w;
|
||||||
|
Loading…
Reference in New Issue
Block a user