Obviously, the /loadbuf command - or the Edit control - has an undocumented character limit.
Given the following alias:
alias -l fillListText {
if ($dialog($1) && ($2 isnum) && $3) {
if ($did($1,$2).lines <= 1) {
loadbuf -o $1 $2 $3
did -z $1 $2
}
}
}
We want to display the GNU GPL (quite a long file) in the Edit control $did(setup,503).
fillListText setup 503 media\license.txt
The file is available here:
http://minus.com/mB2D5XLc3/Still something is apparently missing:
I presume this is not intended.