Thomas Adam
2015-04-19 18:28:54 UTC
When moving winlinks between sessions, honour the renumber-windows session
option if it is set.
---
server-fn.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/server-fn.c b/server-fn.c
index 71745d7..984caca 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -351,6 +351,11 @@ server_unlink_window(struct session *s, struct winlink *wl)
server_destroy_session_group(s);
else
server_redraw_session_group(s);
+
+ /* If the winlink has moved, then honour the renumber-windows session
+ * option.
+ */
+ session_renumber_windows(s);
}
void
option if it is set.
---
server-fn.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/server-fn.c b/server-fn.c
index 71745d7..984caca 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -351,6 +351,11 @@ server_unlink_window(struct session *s, struct winlink *wl)
server_destroy_session_group(s);
else
server_redraw_session_group(s);
+
+ /* If the winlink has moved, then honour the renumber-windows session
+ * option.
+ */
+ session_renumber_windows(s);
}
void
--
2.1.4
2.1.4