diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2022-07-10 20:11:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-10 20:11:28 +0300 |
commit | 694a52bcffeffdc9e163818c3b2ac5c39e26f1ef (patch) | |
tree | a774babc1869b4c700d7df1478dbbfe5b2c3bcda /alacritty/src/renderer/text | |
parent | 8451b75689b44f11ec1707af7e26d915772c3972 (diff) | |
download | r-alacritty-694a52bcffeffdc9e163818c3b2ac5c39e26f1ef.tar.gz r-alacritty-694a52bcffeffdc9e163818c3b2ac5c39e26f1ef.tar.bz2 r-alacritty-694a52bcffeffdc9e163818c3b2ac5c39e26f1ef.zip |
Add support for hyperlink escape sequence
This commit adds support for hyperlink escape sequence
`OSC 8 ; params ; URI ST`. The configuration option responsible for
those is `hints.enabled.hyperlinks`.
Fixes #922.
Diffstat (limited to 'alacritty/src/renderer/text')
-rw-r--r-- | alacritty/src/renderer/text/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/alacritty/src/renderer/text/mod.rs b/alacritty/src/renderer/text/mod.rs index 96945f67..228d2671 100644 --- a/alacritty/src/renderer/text/mod.rs +++ b/alacritty/src/renderer/text/mod.rs @@ -159,7 +159,9 @@ pub trait TextRenderApi<T: TextRenderBatch>: LoadGlyph { self.add_render_item(&cell, &glyph, size_info); // Render visible zero-width characters. - if let Some(zerowidth) = cell.zerowidth.take().filter(|_| !hidden) { + if let Some(zerowidth) = + cell.extra.as_mut().and_then(|extra| extra.zerowidth.take().filter(|_| !hidden)) + { for character in zerowidth { glyph_key.character = character; let glyph = glyph_cache.get(glyph_key, self, false); |