Commit 980bed4423e91bc980afd2035af82f91ff965cdc
1 parent
c9019f72
Exists in
master
and in
3 other branches
Plugin remotectl passa a mudar o id da sessao de acordo com o nome da pipe (:A p…
…ara a primeira instancia, :B para a segunda, ate :Z para a ultima)
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
screen.c
@@ -418,8 +418,11 @@ int cursor_move(H3270 *h, int baddr) | @@ -418,8 +418,11 @@ int cursor_move(H3270 *h, int baddr) | ||
418 | if(ret == baddr) | 418 | if(ret == baddr) |
419 | return ret; | 419 | return ret; |
420 | 420 | ||
421 | - h->cursor_addr = baddr; | ||
422 | - h->update_cursor(h,(unsigned short) (baddr/h->cols),(unsigned short) (baddr%h->cols),h->text[baddr].chr,h->text[baddr].attr); | 421 | + if(baddr >= 0) |
422 | + { | ||
423 | + h->cursor_addr = baddr; | ||
424 | + h->update_cursor(h,(unsigned short) (baddr/h->cols),(unsigned short) (baddr%h->cols),h->text[baddr].chr,h->text[baddr].attr); | ||
425 | + } | ||
423 | 426 | ||
424 | return ret; | 427 | return ret; |
425 | } | 428 | } |