jed-users mailing list

[2003 Date Index] [2003 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: misc.sl, directory() and array_map()


John E. Davis, <davis@xxxxxxxxxxxxx>, wrote:

> >Would it make sense to change the behaviour of
> >array_map to return a zero-length-array if the argument
> >is also a zero-length-array?
> 
> S-Lang 2 will fix this behavior.

Fine. Thank you.

Two other issues, which probably can be fixed with the next SLang/Jed
version:

If message() is used with a long string, I found it crashes wjed.
Here the test code including a workaround.

static define message( s)
{
   if ( strlen( s) > SCREEN_WIDTH)
     s= s[[:SCREEN_WIDTH-2]]+char(DOLLAR_CHARACTER);
   Global->message( s);
}
variable s;
s= "";
loop (3000) s+= "*";
%Global->message( s); % crashes wjed, when uncommented
message( s);

With long input lines in read_mini() and a prompt with more than one
character, the prompt will stay invisible, although the cursor is at
the beginning.
Test code (no workaround known)
variable s;
s= "";
loop (300) s+= "*";
%()= read_mini( "P", "", s); % line scrolls back (^A)
()= read_mini( "P2", "", s); % line does not scroll back

-- Klaus


[2003 date index] [2003 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]