mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-25 13:16:11 +03:00
modify var name
This commit is contained in:
@ -517,12 +517,12 @@ pub const Face = struct {
|
|||||||
// This is the height above baseline consumed by text. We must take
|
// This is the height above baseline consumed by text. We must take
|
||||||
// into account that our cell height splits the leading between two
|
// into account that our cell height splits the leading between two
|
||||||
// rows so we subtract leading space (blank space).
|
// 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.
|
// We want to position the strikethrough at 65% of the height.
|
||||||
// This generally gives a nice visual appearance. The number 65%
|
// This generally gives a nice visual appearance. The number 65%
|
||||||
// is somewhat arbitrary but is a common value across terminals.
|
// 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);
|
break :strikethrough_position @ceil(pos);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user