Fix transpose bug with ansi goto

The line/column were swapped. Strong types are great, but we still have
to be careful at the lowest level before they take effect!
This commit is contained in:
Joe Wilm 2016-07-04 08:28:14 -07:00
parent f8579ff53e
commit 8851fa9c42
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ impl Parser {
'H' | 'f' => {
let y = arg_or_default!(args[0] as usize, 1);
let x = arg_or_default!(args[1] as usize, 1);
handler.goto(Line(x - 1), Column(y - 1));
handler.goto(Line(y - 1), Column(x - 1));
},
'I' => handler.move_forward_tabs(arg_or_default!(args[0], 1)),
'J' => {