diff src/org/tn5250j/framework/tn5250/Screen5250.java @ 185:c51bcf9f0516

setfield positions the cursor properly as if the characters were typed
author Carl Byington <carl@five-ten-sg.com>
date Wed, 02 Jul 2014 14:46:16 -0700
parents cdaaa53b5eca
children 61a90cb1938d
line wrap: on
line diff
--- a/src/org/tn5250j/framework/tn5250/Screen5250.java	Wed Jul 02 14:32:13 2014 -0700
+++ b/src/org/tn5250j/framework/tn5250/Screen5250.java	Wed Jul 02 14:46:16 2014 -0700
@@ -2678,9 +2678,9 @@
             if (!isInField()) {
                 gotoFieldNext();
                 isInField();
+                cf = screenFields.getCurrentField();
+                lastPos = cf.getStartPos();
             }
-            cf = screenFields.getCurrentField();
-            lastPos = cf.getStartPos();
             setDirty(lastPos);
             fireCursorChanged();
         }