aboutsummaryrefslogtreecommitdiff
path: root/src/renderer/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/mod.rs')
-rw-r--r--src/renderer/mod.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs
index 02d31524..5d7a661f 100644
--- a/src/renderer/mod.rs
+++ b/src/renderer/mod.rs
@@ -884,12 +884,17 @@ impl<'a> RenderApi<'a> {
};
// Don't render text of HIDDEN cells
- let chars = if cell.flags.contains(cell::Flags::HIDDEN) {
+ let mut chars = if cell.flags.contains(cell::Flags::HIDDEN) {
[' '; cell::MAX_ZEROWIDTH_CHARS + 1]
} else {
cell.chars
};
+ // Render tabs as spaces in case the font doesn't support it
+ if chars[0] == '\t' {
+ chars[0] = ' ';
+ }
+
let mut glyph_key = GlyphKey {
font_key,
size: glyph_cache.font_size,