From 62a4512816242da1bdab7bbb5aefd2df86b2e594 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 22 Nov 2016 10:17:09 +0530 Subject: [PATCH] ... --- kitty/fonts.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kitty/fonts.py b/kitty/fonts.py index 907348aef..a16cf1e30 100644 --- a/kitty/fonts.py +++ b/kitty/fonts.py @@ -269,10 +269,7 @@ def render_cell(text, bold=False, italic=False, underline=0, strikeout=False): if underline: t = min(cell_height - underline_position - 1, underline_thickness) - if underline == 2: - dl(add_curl, underline_position, t) - else: - dl(add_line, underline_position, t) + dl(add_curl if underline == 2 else add_line, underline_position, t) if strikeout: pos = int(0.65 * baseline) dl(add_line, pos, underline_thickness)