1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 12:23:46 +03:00

optimize change to column 0 as CR

Optimize a `Change::CursorPosition { x: Absolute(0), y: Relative(0) }` as CR.
This commit is contained in:
Mark Thomas 2019-04-23 19:57:12 +01:00 committed by Wez Furlong
parent 6ef1ad3a56
commit 4ca7214ae2

View File

@ -448,6 +448,12 @@ impl TerminfoRenderer {
} => {
out.by_ref().write_all(b"\r\n")?;
}
Change::CursorPosition {
x: Position::Absolute(0),
y: Position::Relative(0),
} => {
out.by_ref().write_all(b"\r")?;
}
Change::CursorPosition {
x: Position::Absolute(0),
y: Position::Absolute(0),