as everythings ok with values <= 400 theres no real reason why xy should crash at the 401th execution of a working SUB statement so this falls into the bug category. edit: those values are true for v 9.90.1025. see my next post
Code: Select all
global $pos, $cnt, $off, $len;
$len = input("Enter The Line Youd Like to Jump To<crlf>suggested value is the maximum allowed", "MORE THAN SUGGESTED WILL CRASH XY - depending on the version used. Suggested refers to 9.90.1101" , "386");
$off = 1;
$cnt = 1;
$pos = get("focusedpos");
setting "allowrecursion", 1;
sub (get("countselected") >= 1) ? (($cnt <= $len) ? "_sub1" : "_ok") : "_ok";
setting "allowrecursion", r;
"_sub1"
global $off, $len, $cnt;
incr $cnt, $cnt;
sub ($cnt <= $len) ? "_off" : "_done";
sub (get("countselected") == 1) ? (($cnt <= $len) ? "_sub1" : "_ok") : "_ok";
"_off"
global $off, $cnt;
sel "+".$off;
copytext "count: $cnt"; //just paste the value to clipboard after a crash and youll obtain the safe threshold to work with
"_done"
status "task done";
"_ok"
global $cnt, $pos;
$last = $cnt - 1;
status "item $last, started at: $pos";