This commit is contained in:
Kovid Goyal 2026-01-06 08:37:24 +05:30
parent 32f7f8d321
commit df17142ea4
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 2 deletions

View file

@ -171,6 +171,9 @@ Detailed list of changes
- ncurses: Fix ncurses not using dim because it is missing from the sgr property
in terminfo even though it is present in the dim property.
- Fix a regression in the previous release that caused moving between neighbors
in the vertical and horizontal layouts to go in the opposite direction (:iss:`9355`)
0.45.0 [2025-12-24]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -129,8 +129,8 @@ class Vertical(Layout):
idx = groups.index(wg)
lg = len(groups)
if lg > 1:
before = [groups[(idx - 1 + lg) % lg].id]
after = [groups[(idx + 1) % lg].id]
after = [groups[(idx - 1 + lg) % lg].id]
before = [groups[(idx + 1) % lg].id]
else:
before, after = [], []
ans: NeighborsMap = {}