mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 23:44:59 +02:00
Change splits layout neighbors to only include real neighbors
This commit is contained in:
@@ -250,6 +250,10 @@ class TestLayout(BaseTest):
|
||||
self.ae(q.pairs_root.pair_for_window(2).horizontal, False)
|
||||
q.add_window(all_windows, Window(4), location='vsplit')
|
||||
windows = list(all_windows)
|
||||
windows[0].set_geometry(WindowGeometry(0, 0, 10, 20, 0, 0))
|
||||
windows[1].set_geometry(WindowGeometry(11, 0, 20, 10, 0, 0))
|
||||
windows[2].set_geometry(WindowGeometry(11, 11, 15, 20, 0, 0))
|
||||
windows[3].set_geometry(WindowGeometry(16, 11, 20, 20, 0, 0))
|
||||
self.ae(q.neighbors_for_window(windows[0], all_windows), {'left': [], 'right': [2, 3], 'top': [], 'bottom': []})
|
||||
self.ae(q.neighbors_for_window(windows[1], all_windows), {'left': [1], 'right': [], 'top': [], 'bottom': [3, 4]})
|
||||
self.ae(q.neighbors_for_window(windows[2], all_windows), {'left': [1], 'right': [4], 'top': [2], 'bottom': []})
|
||||
|
||||
Reference in New Issue
Block a user