improved tab behaviour when tab is removed
Brought to you by:
demichel
With multi-gnome-terminal 1.6.2 (and probably before),
when a tab is closed, mgt makes the tab left of the
closed tab active.
This is fine when the closing tab was the active tab.
But this happens also if the closing tab was not
active (this happens mainly when the tab was opened via
a user defined command (new term menu) and this command
finishes). Then the active tab is changed to the tab
left of the closing tab, too.
With this patch, gmt switches the tab only if the
closing tab was the active tab, otherwise the tab
closes and the active tab doesn't change.
multi-gnome-terminal-1.6.2-tab.patch