fix SetCursorPosXY; had rows/cols flipped

This commit is contained in:
Wez Furlong committed 2018-01-28 21:13:11 -08:00
1 parent 13a856bbb2
commit 6ed0e81f02
1 file changed
+1 -1
+1 -1
View File
@@ -211,7 +211,7 @@ impl<'a> CSIParser<'a> {
// With no parameters, home the cursor
Some(CSIAction::SetCursorXY(0, 0))
}
&[x, y] => {
&[y, x] => {
self.advance_by(2, params);
// Co-ordinates are 1-based, but we want 0-based
Some(CSIAction::SetCursorXY((x - 1) as usize, (y - 1) as usize))