I've done a few tests with it and found some further information about the problem.. the main test code I used was:
alias cbtest {
var %a = 1
echo starting with: $cb(0) lines in the clipboard
while (%a <= $cb(0)) {
var %b = $cb(%a)
var %c = $sorttok(%b,32,a)
inc %a
}
echo ending with: $cb(0) lines in the clipboard
.timerclip 1 1 echo now with $!cb(0) lines in the clipboard
}
I also tried a similar code which had while ($cb(0)) { echo lines $cb(0) } which also halted under the same conditions below. (I have not included the full sample of this code as it will cause an endless loop if it passes)
the issue seems to be dependent on how quickly the script is triggered after the clipboard is filled - typically a couple of seconds or so from what I can see..
I highlighted/copied a page with ~628 lines of text and if I tried the script within a second or two of copying the text, it would end the loop prematurely.
I found with a timer 1 0, it still reported the clipboard as being empty, but timer 1 1 showed the full clipboard once again.
it triggers randomly so there is no particular point in the clipboard contents that it stops..
as to the content, I have tried a number of different sources, and I can only guess it is only affected by mixed content (text and images - ie from a webpage) - I tried my facebook wall as a sample and that caused the trigger, but other text only content of varying sizes did not.