diff --git a/docs/changelog.rst b/docs/changelog.rst index 243071ac5..7651c106b 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -35,6 +35,11 @@ mouse anywhere in the current command to move the cursor there. See Detailed list of changes ------------------------------------- +0.27.1 [future] +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +- Fix :opt:`modify_font` not working for strikethrough position (:iss:`5946`) + 0.27.0 [2023-01-31] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/fonts.c b/kitty/fonts.c index 2d49047d7..866f718b4 100644 --- a/kitty/fonts.c +++ b/kitty/fonts.c @@ -387,7 +387,7 @@ calc_cell_metrics(FontGroup *fg) { int adjustment = baseline - baseline_before; baseline = adjust_ypos(baseline_before, cell_height, adjustment); underline_position = adjust_ypos(underline_position, cell_height, adjustment); - strikethrough_position = adjust_ypos(underline_position, cell_height, adjustment); + strikethrough_position = adjust_ypos(strikethrough_position, cell_height, adjustment); } underline_position = MIN(cell_height - 1, underline_position);