Hi,
On 6 August 2014 05:10, Jan Larres <[email protected]> wrote:
> ________________________________
>
> [tickets:#150] Moving windows doesn't honour renumber-windows setting
>
> Status: open
> Created: Wed Aug 06, 2014 04:10 AM UTC by Jan Larres
> Last Updated: Wed Aug 06, 2014 04:10 AM UTC
> Owner: nobody
>
> I have the renumber-windows option set, which works fine if I close a window
> in some way. However, if I move a window to a different session with the
> move-window command then the remaining windows in the original session don't
> get renumbered. I have to open and close a new window in that session to
> cause renumbering.
Does this help?
diff --git a/server-fn.c b/server-fn.c
index e0859f7..8ad5b10 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -110,8 +110,10 @@ server_redraw_session(struct session *s)
c = ARRAY_ITEM(&clients, i);
if (c == NULL || c->session == NULL)
continue;
- if (c->session == s)
+ if (c->session == s) {
server_redraw_client(c);
+ session_renumber_windows(s);
+ }
}
}
-- Thomas Adam
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users