From e427312282a70211207ea59ed6700b4a053daf83 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 26 May 2024 09:28:16 -0700 Subject: [PATCH] modify var name --- src/font/face/coretext.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/font/face/coretext.zig b/src/font/face/coretext.zig index 8b98fc086..c15c68230 100644 --- a/src/font/face/coretext.zig +++ b/src/font/face/coretext.zig @@ -517,12 +517,12 @@ pub const Face = struct { // This is the height above baseline consumed by text. We must take // into account that our cell height splits the leading between two // rows so we subtract leading space (blank space). - const text_height_above_baseline = layout_metrics.ascent - (layout_metrics.leading / 2); + const above_baseline = layout_metrics.ascent - (layout_metrics.leading / 2); // We want to position the strikethrough at 65% of the height. // This generally gives a nice visual appearance. The number 65% // is somewhat arbitrary but is a common value across terminals. - const pos = text_height_above_baseline * 0.65; + const pos = above_baseline * 0.65; break :strikethrough_position @ceil(pos); };