Stale tab titles
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Terminator |
Fix Released
|
Medium
|
Stephen Boddy |
Bug Description
Bringing bug 1160508 and bug 1225819 here.
The tab titles do not update properly when closing one window of a split.
Steps to reproduce:
1. Open Terminator.
2. Create another tab (Ctrl-Shift-T).
3. Split the tab vertically (Ctrl-Shift-E).
4. In the active window, change the directory to something else (for example, cd /).
5. Exit the shell of the active window (Ctrl-D).
Expected results:
The second tab title is the same as the title of the remaining window of the split, showing the home directory (user@host: ~).
Actual results:
The second tab title is left over from the closed tab, showing the directory changed to (user@host: /).
Note: In order for the bug to occur, it might be required that all the terminals set their title at least once via escape sequences, and practically to different values.
Related branches
Changed in terminator: | |
status: | Fix Committed → Fix Released |
Results so far:
My bash prompt sets the window title to the tty number, a unique number for each terminal at a time. I'm testing by starting up Terminator, then pressing Ctrl+Shift+T, Ctrl+Shift+E, Ctrl+D.
paned.py -> wrapcloseterm(), "At this point we only have one child, which is the surviving term". Notebook's vpaned or hpaned child is removed and we're about to add the terminal directly as the new child. Hence "parent. add(sibling, metadata)" is called.
metadata, for some reason, contains the title of the tab that's being removed.
notebook.py -> add(), calls newtab() in turn. Due to metadata['label'] being defined, calls label.set_ custom_ label() in turn. Things obviously go wrong from this point.