Fix minimal borders in grid layout

This commit is contained in:
Kovid Goyal
2020-04-19 17:58:35 +05:30
parent 33498f9133
commit d4a4ee386f
2 changed files with 64 additions and 46 deletions

View File

@@ -97,8 +97,11 @@ class Borders:
color = BorderColor.active
else:
color = BorderColor.bell if w.needs_attention else BorderColor.inactive
colors = tuple(color if needed else window_bg for needed in next(border_data))
draw_edges(self.os_window_id, self.tab_id, colors, w, borders=True)
try:
colors = tuple(color if needed else window_bg for needed in next(border_data))
draw_edges(self.os_window_id, self.tab_id, colors, w, borders=True)
except StopIteration:
pass
if not has_background_image:
# Draw the background rectangles over the padding region
colors = window_bg, window_bg, window_bg, window_bg