This commit is contained in:
Kovid Goyal 2025-04-11 08:50:16 +05:30
parent 49092f5a94
commit 167e6e73f7
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -639,6 +639,7 @@ def layout_action(self, action_name: str, args: Sequence[str], all_windows: Wind
if count == 2: # special case, a single split
pair = self.pairs_root.pair_for_window(wg.id)
if pair is not None:
pair.horizontal = horizontal
if which in ('left', 'top'):
if pair.one != wg.id:
pair.one, pair.two = pair.two, pair.one