quote:
Originally posted by Mnjul
Try use
for(i=0;i<Breaks.length;i++)
instead of
for(i=0;i<=Breaks.length;i++)
, as there's no Breaks[Breaks.length] (see, there's Break[0] to Break[Breaks.length-1], totaling to Breaks.length items);
Thanks. It seems to work now.
Okay. What I tried to do is to count number of lines and multiply it with 10 to set the height of the window.
Then I would take the number of characters in the longest line and mulitply it with about five for the width.
It doesn't seem to be a great plan.
Does anybody have an idea, how to make it smarter?