Preserve marked pane with swap-window and move-window, GitHub issue 3443.

This commit is contained in:
nicm
2025-10-30 13:52:08 +00:00
parent 29db8ac36e
commit e774b89062
2 changed files with 4 additions and 0 deletions

View File

@@ -289,6 +289,8 @@ server_link_window(struct session *src, struct winlink *srcwl,
if (dstwl == NULL)
return (-1);
if (marked_pane.wl == srcwl)
marked_pane.wl = dstwl;
if (selectflag)
session_select(dst, dstwl->idx);
server_redraw_session_group(dst);