Discussion:
[PATCH 1/1] kill-window: Unzoom window before looking up winlink
Thomas Adam
2015-01-04 02:22:08 UTC
Permalink
If the window that's being killed is in a zoomed state, unzoom it first,
otherwise there's no chance of finding the correct winlink, causing tmux to
exit.
---
server-fn.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/server-fn.c b/server-fn.c
index 6cab6bd..1ed3a01 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -270,6 +270,7 @@ server_kill_window(struct window *w)

if (session_has(s, w) == NULL)
continue;
+ server_unzoom_window(w);
while ((wl = winlink_find_by_window(&s->windows, w)) != NULL) {
if (session_detach(s, wl)) {
server_destroy_session_group(s);
--
2.0.1
Nicholas Marriott
2015-01-06 09:13:03 UTC
Permalink
applied, thanks
Post by Thomas Adam
If the window that's being killed is in a zoomed state, unzoom it first,
otherwise there's no chance of finding the correct winlink, causing tmux to
exit.
---
server-fn.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/server-fn.c b/server-fn.c
index 6cab6bd..1ed3a01 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -270,6 +270,7 @@ server_kill_window(struct window *w)
if (session_has(s, w) == NULL)
continue;
+ server_unzoom_window(w);
while ((wl = winlink_find_by_window(&s->windows, w)) != NULL) {
if (session_detach(s, wl)) {
server_destroy_session_group(s);
--
2.0.1
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users
Loading...