Second draw attempt has single fade edge

This commit is contained in:
Kovid Goyal 2022-07-29 08:15:38 +05:30
parent 0ce2a23af3
commit e3a4150fea
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -321,7 +321,7 @@ def draw_tab_with_fade(
extra = screen.cursor.x - before - max_title_length
if extra > 0:
screen.cursor.x = before
draw_title(draw_data, screen, tab, index, max(0, max_title_length - 8))
draw_title(draw_data, screen, tab, index, max(0, max_title_length - 4))
extra = screen.cursor.x - before - max_title_length
if extra > 0:
screen.cursor.x -= extra + 1