Commit 1ad3819
committed
Window(fix[swap]): refresh self and target after swap-window
why: swap-window swaps window object pointers at tmux indices, changing
window_index on both objects. Not refreshing leaves stale state,
identical to the issue fixed in move_window by commit 3654a36.
what:
- Add self.refresh() after successful swap-window cmd
- Refresh target Window if target is a Window instance
- Remove manual refresh() calls from docstring examples (now automatic)1 parent 8f30712 commit 1ad3819
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
808 | 808 | | |
809 | 809 | | |
810 | 810 | | |
811 | | - | |
812 | | - | |
813 | 811 | | |
814 | 812 | | |
815 | 813 | | |
| |||
828 | 826 | | |
829 | 827 | | |
830 | 828 | | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
831 | 833 | | |
832 | 834 | | |
833 | 835 | | |
| |||
0 commit comments