Fix incorrect width for tab-replacing spaces
This commit is contained in:
parent
31bb2de87b
commit
3b2a2105fe
1 changed files with 1 additions and 1 deletions
|
|
@ -351,7 +351,7 @@ impl Buffer {
|
||||||
col += width as usize;
|
col += width as usize;
|
||||||
if g == "\t" {
|
if g == "\t" {
|
||||||
for dx in 0..width {
|
for dx in 0..width {
|
||||||
self.write_grapheme(&xrange, x + dx as i32, y, width, " ", style);
|
self.write_grapheme(&xrange, x + dx as i32, y, 1, " ", style);
|
||||||
}
|
}
|
||||||
} else if width > 0 {
|
} else if width > 0 {
|
||||||
self.write_grapheme(&xrange, x, y, width, g, style);
|
self.write_grapheme(&xrange, x, y, width, g, style);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue