summaryrefslogtreecommitdiff
path: root/src/term/terminal.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/term/terminal.zig')
-rw-r--r--src/term/terminal.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/term/terminal.zig b/src/term/terminal.zig
index 2c05cd3c..70cd4e9d 100644
--- a/src/term/terminal.zig
+++ b/src/term/terminal.zig
@@ -1397,7 +1397,7 @@ fn cellAt(pages: *const ghostty_vt.PageList, row: ghostty_vt.Pin, x: u16) ?ghost
}
// A cell's underline styles are SGR's, in SGR's order (`off` its `none`): a
-// cast takes one to the other (cellStyle, pager.zig).
+// cast takes one to the other (cellStyle, and pager.zig's attribute).
comptime {
for (@typeInfo(@FieldType(pardes.CellStyle, "ul")).@"enum".field_names, 0..) |name, i|
if (@backingInt(@field(ghostty_vt.sgr.Attribute.Underline, if (std.mem.eql(u8, name, "off")) "none" else name)) != i) @compileError("a cell's underline styles are not SGR's");
@@ -1524,7 +1524,7 @@ pub const FilteredColors = struct {
return asPardesColor(self.keyedRgb(style.bg(cell, &self.source).?));
}
- /// A +Pager span's colour (pager.zig), as `fg` and `bg` map a cell's.
+ /// A +Pager span's colour (Term.page), as `fg` and `bg` map a cell's.
pub fn spanColor(self: *FilteredColors, color: pardes.Color, is_bg: bool) pardes.Color {
return switch (color) {
.default => color,