diff options
author | Christian Duerr <contact@christianduerr.com> | 2019-09-19 23:15:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-19 23:15:06 +0200 |
commit | 71a818cb8fcc99d1d9176fca3b3386c6971a306a (patch) | |
tree | 2d863f8f300cc930dd9172b3b9d6907a004f8d28 /alacritty_terminal/src | |
parent | 9a14ca42d35e3b72ca254384ef7e4639aab0e100 (diff) | |
download | alacritty-71a818cb8fcc99d1d9176fca3b3386c6971a306a.tar.gz alacritty-71a818cb8fcc99d1d9176fca3b3386c6971a306a.zip |
Initialize only visible characters
This fixes an off-by-two error in the renderer which initializes
characters 32 until 128 (inclusive) for each font whenever it is loaded.
The ascii visible range however just goes from 32 until 126 (inclusive).
Diffstat (limited to 'alacritty_terminal/src')
-rw-r--r-- | alacritty_terminal/src/renderer/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty_terminal/src/renderer/mod.rs b/alacritty_terminal/src/renderer/mod.rs index 2a0529da..da2dfed1 100644 --- a/alacritty_terminal/src/renderer/mod.rs +++ b/alacritty_terminal/src/renderer/mod.rs @@ -223,7 +223,7 @@ impl GlyphCache { fn load_glyphs_for_font<L: LoadGlyph>(&mut self, font: FontKey, loader: &mut L) { let size = self.font_size; - for i in 32u8..=128u8 { + for i in 32u8..=126u8 { self.get(GlyphKey { font_key: font, c: i as char, size }, loader); } } |