Merge branch 'fix-grid-neighbors' of https://github.com/strix/kitty

This commit is contained in:
Kovid Goyal
2018-11-02 10:32:27 +05:30
2 changed files with 4 additions and 1 deletions

View File

@@ -63,6 +63,9 @@ Changelog
- Fix second cell of emoji created using variation selectors not having
the same attributes as the first cell (:iss:`1109`)
- Fix focusing neighboring windows int he grid layout with less than 4 windows
not working (:iss:`1115`)
0.12.3 [2018-09-29]
------------------------------

View File

@@ -721,7 +721,7 @@ class Grid(Layout): # {{{
def neighbors_for_window(self, window, windows):
n = len(windows)
if n < 4:
return Tall.neighbors_for_window(window, windows)
return Tall.neighbors_for_window(self, window, windows)
try:
n, ncols, nrows, special_rows, special_col = windows[0].layout_data
except Exception: