Hello, Hello,
There was a bug in my original patch where `tmux select-pane` would
segfault if the current window had only 1 pane.
The following changes fix that bug:
diff --git a/window.c b/window.c
index 7412a4d..adb67e0 100644
--- a/window.c
+++ b/window.c
@@ -1163,9 +1163,10 @@ window_pane_refocus(struct window_pane *wp,
struct window_pane *wp2)
if (lc == wp2->layout_cell->parent)
return (wp2);
- /* transfer would halt if focused pane was same as source pane */
- fp = wp2->layout_cell->parent->wp;
- if (fp != wp && fp != NULL && window_pane_visible(fp))
+ /* focused pane, if any, must not be the same as source pane */
+ lc = wp2->layout_cell->parent;
+ fp = lc != NULL ? lc->wp : NULL;
+ if (fp != NULL && fp != wp && window_pane_visible(fp))
return (fp);
else
return (wp2);
I am attaching a revised version (containing the above fix) of my
original patch.
Thanks for your consideration.
0001-remember-focused-window-panes-while-changing-focus.patch
Description: Binary data
------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________ tmux-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tmux-users
