aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/csi.c b/csi.c
index 93d70944..7a50ef5b 100644
--- a/csi.c
+++ b/csi.c
@@ -1200,10 +1200,10 @@ csi_dispatch(struct terminal *term, uint8_t final)
case 13: { /* report window position */
- /* We don't know our position - always report (0,0) */
int x = -1;
int y = -1;
+ /* We don't know our position - always report (0,0) */
switch (vt_param_get(term, 1, 0)) {
case 0:
/* window position */
@@ -1212,8 +1212,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
case 2:
/* text area position */
- x = term->margins.left;
- y = term->margins.top;
+ x = y = 0;
break;
default: