mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 18:51:41 +02:00
...
This commit is contained in:
@@ -201,7 +201,7 @@ def render_cell(text=' ', bold=False, italic=False, underline=0, strikethrough=F
|
|||||||
bitmap_char, second = split_char_bitmap(bitmap_char)
|
bitmap_char, second = split_char_bitmap(bitmap_char)
|
||||||
second = place_char_in_cell(second)
|
second = place_char_in_cell(second)
|
||||||
else:
|
else:
|
||||||
second = render_cell()
|
second = render_cell()[0]
|
||||||
|
|
||||||
first = place_char_in_cell(bitmap_char)
|
first = place_char_in_cell(bitmap_char)
|
||||||
|
|
||||||
|
|||||||
@@ -83,11 +83,8 @@ class Sprites:
|
|||||||
|
|
||||||
def render_cell(self, text, bold, italic, is_second):
|
def render_cell(self, text, bold, italic, is_second):
|
||||||
first, second = render_cell(text, bold, italic)
|
first, second = render_cell(text, bold, italic)
|
||||||
if is_second:
|
ans = (second or first) if is_second else first
|
||||||
ans = second or first
|
return ans or render_cell()[0]
|
||||||
else:
|
|
||||||
ans = first
|
|
||||||
return ans or render_cell()
|
|
||||||
|
|
||||||
def render_dirty_cells(self):
|
def render_dirty_cells(self):
|
||||||
with self.lock:
|
with self.lock:
|
||||||
|
|||||||
Reference in New Issue
Block a user