Fix blank space at the start of tab bar in powerline style when first tab is inactive

Fix #2478
This commit is contained in:
Kovid Goyal 2020-03-25 19:20:35 +05:30
parent 0da566b49f
commit fffb976e43
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- Hints kitten: Adjust the default regex used to detect line numbers to handle
line+column numbers (:iss:`2268`)
- Fix blank space at the start of tab bar in powerline style when first tab is
inactive (:iss:`2478`)
0.17.1 [2020-03-24]
--------------------

View File

@ -137,6 +137,7 @@ def draw_tab_with_powerline(draw_data: DrawData, screen: Screen, tab: TabBarData
screen.draw('')
screen.cursor.fg = tab_fg
elif screen.cursor.x == 0:
screen.cursor.bg = tab_bg
screen.draw(' ')
start_draw = 1