summaryrefslogtreecommitdiff
path: root/src/ansi.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-07-04 08:28:14 -0700
committerJoe Wilm <joe@jwilm.com>2016-07-04 08:28:14 -0700
commit8851fa9c425d16cebb0d3608e74d583f618551b1 (patch)
tree6de3de129643875ccbac9c611dac0dc65b24185b /src/ansi.rs
parentf8579ff53e443cfe0f1485886536fced2324e15b (diff)
downloadalacritty-8851fa9c425d16cebb0d3608e74d583f618551b1.tar.gz
alacritty-8851fa9c425d16cebb0d3608e74d583f618551b1.zip
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!
Diffstat (limited to 'src/ansi.rs')
-rw-r--r--src/ansi.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ansi.rs b/src/ansi.rs
index d951d0c2..b229061e 100644
--- a/src/ansi.rs
+++ b/src/ansi.rs
@@ -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' => {