Mercurial > 510Connectbot
comparison src/org/tn5250j/framework/tn5250/Screen5250.java @ 208:561caa2f7c17
more testing on cursor movement
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 03 Jul 2014 19:34:07 -0700 |
parents | 81f9ba83c0e9 |
children | 071eccdff8ea |
comparison
equal
deleted
inserted
replaced
207:2c5c90e53c33 | 208:561caa2f7c17 |
---|---|
2658 */ | 2658 */ |
2659 public void setField(int l, int c, char [] data) { | 2659 public void setField(int l, int c, char [] data) { |
2660 ScreenField cf; | 2660 ScreenField cf; |
2661 | 2661 |
2662 if (l >= 0) { | 2662 if (l >= 0) { |
2663 int position = l * numCols + c; | 2663 lastPos = l * numCols + c; |
2664 if (!isInField(position, true)) { | 2664 while (!isInField()) advancePos(); |
2665 lastPos = position; | |
2666 while (!isInField()) advancePos(); | |
2667 cf = screenFields.getCurrentField(); | |
2668 lastPos = cf.getStartPos(); | |
2669 } | |
2670 else { | |
2671 lastPos = position; | |
2672 } | |
2673 setDirty(lastPos); | 2665 setDirty(lastPos); |
2674 fireCursorChanged(); | 2666 fireCursorChanged(); |
2675 } | 2667 } |
2676 | 2668 |
2677 if ((data != null) && (data.length > 0)) { | 2669 if ((data != null) && (data.length > 0)) { |