aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/renderer/mod.rs
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2022-03-16 19:27:55 +0300
committerGitHub <noreply@github.com>2022-03-16 19:27:55 +0300
commitf4bdf5fb36fdf3b329be8253da39050abe7238a5 (patch)
tree9b49a78b15fdd73850a7bfc279e3986af2b59683 /alacritty/src/renderer/mod.rs
parent589c1e9c6b8830625162af14a9a7aee32c7aade0 (diff)
downloadr-alacritty-f4bdf5fb36fdf3b329be8253da39050abe7238a5.tar.gz
r-alacritty-f4bdf5fb36fdf3b329be8253da39050abe7238a5.tar.bz2
r-alacritty-f4bdf5fb36fdf3b329be8253da39050abe7238a5.zip
Add colored underline support
This commit adds support for colored underline and refines the dynamic extra storage. The extra storage now is using `Arc` making cloning it way faster compared to `Box` approach which scales really well when it comes to cloning in `Term::write_at_cursor`, since cloning `Arc` is constant time. Fixes #4142.
Diffstat (limited to 'alacritty/src/renderer/mod.rs')
-rw-r--r--alacritty/src/renderer/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/alacritty/src/renderer/mod.rs b/alacritty/src/renderer/mod.rs
index cf9ee149..4a75416b 100644
--- a/alacritty/src/renderer/mod.rs
+++ b/alacritty/src/renderer/mod.rs
@@ -135,6 +135,7 @@ impl Renderer {
bg_alpha: 1.0,
fg,
bg,
+ underline: fg,
});
self.draw_cells(size_info, glyph_cache, cells);