From 01f8a2b9a80cd8d4cbe5cd6c2a6e11b1dfe1ddb9 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Wed, 26 Sep 2012 01:24:29 +0000 Subject: [PATCH] Corrigindo posicionamento do cursor via hllapi --- src/plugins/remotectl/remotectl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/remotectl/remotectl.c b/src/plugins/remotectl/remotectl.c index de33562..1b2fadd 100644 --- a/src/plugins/remotectl/remotectl.c +++ b/src/plugins/remotectl/remotectl.c @@ -164,7 +164,7 @@ return ENOTCONN; trace("%s: pos=%d row=%d col=%d",__FUNCTION__,rc,rc/80,rc%80); - lib3270_set_cursor_address(hSession,(int) rc); + lib3270_set_cursor_address(hSession,((int) rc) -1); return 0; } -- libgit2 0.21.2