mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 06:54:58 +02:00
Ensure full titlebar line is erased to current background before re-drawing
This commit is contained in:
@@ -134,7 +134,6 @@ class WindowTitleBarScreen:
|
|||||||
opts = get_options()
|
opts = get_options()
|
||||||
s = self.screen
|
s = self.screen
|
||||||
s.cursor.x = 0
|
s.cursor.x = 0
|
||||||
s.erase_in_line(2, False)
|
|
||||||
|
|
||||||
is_active = data.is_active
|
is_active = data.is_active
|
||||||
if is_active:
|
if is_active:
|
||||||
@@ -181,6 +180,7 @@ class WindowTitleBarScreen:
|
|||||||
title_str = str(title)
|
title_str = str(title)
|
||||||
align = opts.window_title_bar_align
|
align = opts.window_title_bar_align
|
||||||
|
|
||||||
|
s.erase_in_line(2, False)
|
||||||
if align == 'left':
|
if align == 'left':
|
||||||
draw_attributed_string(title_str, s)
|
draw_attributed_string(title_str, s)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user