[racket] A bug in text%

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Thu Oct 13 07:58:01 EDT 2011

I've pushed a fix to the git repo.

Thanks!

At Thu, 13 Oct 2011 09:22:19 +0200 (CEST), Ivanyi Peter wrote:
> Hi All, There is a bug in the text% widget when handling TABs.In the attached 
> code I have to use a list to specify the TAB positions.(The code does not 
> allow me to specify a vector.)However when I try to insert a text containing a 
> tabulator DrRackettells me: vector-ref: expects type <vector> as 1st argument, 
> given: &#39;(100 200 300 400 500 600 700 800 900 1000 100); other arguments 
> were: 0 I think it is a bug. Peter Ivanyi 
> ---------------------------------------------------------------------------- 
> #lang racket
> 
> (require (lib "class.ss")
>          (lib "mred.ss" "mred")
> )
> 
> (define win (new frame% (label "test")))
> (define t1 (new text%))
> (define canvas (new editor-canvas% (parent win)
>                                    (editor t1)
>                                    (style &#39;(control-border))
>                )
> )
> (send t1 set-tabs &#39;(100 200 300 400 500 600 700 800 900 1000 100) 1 #t)
> (send t1 insert "Hello\tWorld")



Posted on the users mailing list.