Minor tweak to console formatting code.

Made it so that the line-height can be easily changed in one
place, for experimentation.
This commit is contained in:
Nathan Vegdahl 2015-01-31 13:53:07 -08:00
parent afa1a8f67c
commit 67e4495d83

View File

@ -123,8 +123,8 @@ impl<'a> Iterator for ConsoleLineFormatterVisIter<'a> {
let width = grapheme_vis_width_at_vis_pos(g, self.pos.1, self.f.tab_width as usize); let width = grapheme_vis_width_at_vis_pos(g, self.pos.1, self.f.tab_width as usize);
if (self.pos.1 + width) > self.f.wrap_width { if (self.pos.1 + width) > self.f.wrap_width {
let pos = (self.pos.0 + 1, 0); let pos = (self.pos.0 + self.f.single_line_height(), 0);
self.pos = (self.pos.0 + 1, width); self.pos = (self.pos.0 + self.f.single_line_height(), width);
return Some((g, pos, width)); return Some((g, pos, width));
} }
else { else {