Fix tab skip rendering
Replace '\t' with a space in text buffers, as tab skip/stop is handled by `alacritty_terminal`. Also, sending a tab to the shaper causes issues, as fonts either have no tab codepoint, or worse, some do, with the glyph produced being anyone's guess. Some may render a tab to some random character like '0'. Fixes #73. Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
This commit is contained in:
parent
6d519018a0
commit
d6946d40bd
1 changed files with 2 additions and 1 deletions
|
|
@ -633,7 +633,8 @@ impl Terminal {
|
||||||
buffer.set_redraw(true);
|
buffer.set_redraw(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if buffer.lines[line_i].set_text(text.clone(), attrs_list.clone()) {
|
// Tab skip/stop is handled by alacritty_terminal
|
||||||
|
if buffer.lines[line_i].set_text(text.replace('\t', " "), attrs_list.clone()) {
|
||||||
buffer.set_redraw(true);
|
buffer.set_redraw(true);
|
||||||
}
|
}
|
||||||
line_i += 1;
|
line_i += 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue