micro opt cursor moving during print

This commit is contained in:
Wez Furlong committed 2018-02-19 10:47:49 -08:00
1 parent 6e5986e868
commit a0b4630998
3 files changed
+4 -6

No files matched your search

+1 -1
View File
@@ -141,7 +141,7 @@ set to 80x24 with 3500 lines of scrollback. `alacritty` has no scrollback.
| xterm | 9.863 |
| Gnome Terminal | 2.391 |
| Terminator 1.91 | 2.319 |
| wezterm | 0.996 |
| wezterm | 0.940 |
| kitty | 0.899 |
| urxvt | 0.615 |
| alacritty | 0.421 |
+1 -1
View File
@@ -138,7 +138,7 @@ impl Default for Cell {
Cell {
len: 1,
bytes,
attrs: CellAttributes::default()
attrs: CellAttributes::default(),
}
}
}
+2 -4
View File
@@ -1076,10 +1076,8 @@ impl vte::Perform for TerminalState {
}
if x + print_width < width {
self.set_cursor_pos(
&Position::Relative(print_width as i64),
&Position::Relative(0),
);
self.cursor.x += print_width;
self.wrap_next = false;
} else {
self.wrap_next = true;
}