aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--driver-csi.c2
-rw-r--r--t/31position.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/driver-csi.c b/driver-csi.c
index 0609e64..ddc2ac8 100644
--- a/driver-csi.c
+++ b/driver-csi.c
@@ -199,7 +199,7 @@ static TermKeyResult handle_csi_position(TermKey *tk, TermKeyKey *key, int cmd,
return TERMKEY_RES_NONE;
key->type = TERMKEY_TYPE_POSITION;
- termkey_key_set_linecol(key, arg[0], arg[1]);
+ termkey_key_set_linecol(key, arg[1], arg[0]);
return TERMKEY_RES_KEY;
}
diff --git a/t/31position.c b/t/31position.c
index baefb8b..bb798c6 100644
--- a/t/31position.c
+++ b/t/31position.c
@@ -19,8 +19,8 @@ int main(int argc, char *argv[])
is_int(termkey_interpret_position(tk, &key, &line, &col), TERMKEY_RES_KEY, "interpret_position yields RES_KEY");
- is_int(line, 7, "line for position report");
- is_int(col, 15, "column for position report");
+ is_int(line, 15, "line for position report");
+ is_int(col, 7, "column for position report");
termkey_destroy(tk);