Verified Commit 2f60a91b authored by Maxime Buquet's avatar Maxime Buquet
Browse files

windows/info_bar: Prevent UnboundLocalError. Thanks genofire

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <>
parent 6ddf497e
Pipeline #3311 passed with stages
in 5 minutes and 13 seconds
......@@ -118,6 +118,10 @@ class VerticalGlobalInfoBar(Win):
nb_tabs = len(sorted_tabs)
use_nicks = config.get('use_tab_nicks')
if nb_tabs >= height:
# TODO: As sorted_tabs filters out gap tabs this ensures pos is
# always set, preventing UnboundLocalError. Now is this how this
# should be fixed.
pos = 0
for y, tab in enumerate(sorted_tabs):
if tab.vertical_color == theme.COLOR_VERTICAL_TAB_CURRENT:
pos = y
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment