Excerpts from Benoît PIERRE's message of Tue Aug 18 20:59:20 +0200 2009:
> Excerpts from Dusan's message of Tue Aug 18 20:46:52 +0200 2009:
> > Excerpts from Benoît PIERRE's message of Tue Aug 18 20:24:45 +0200 2009:
> > > Excerpts from Dusan's message of Tue Aug 18 09:42:48 +0200 2009:
> >
> > [...]
> >
> > I will, just give me day or two. I am using gem version, not svn or git.
> > I did some stuff with them but never with ruby. Can you give me two
> > lines help what to install and where? Latest svn?
>
> You can probably directly patch the sources in the gem. For example on
> Ubuntu, the sources should be somewhere in /var/lib/gems/1.8/gems/sup-xxx.
>
> Use 'gem environment' to get the installation directory.
>
> Another option is to follow the wiki to get the latest git version:
> http://sup.rubyforge.org/wiki/wiki.pl?Contributing
Bah, I could not wait till tomorrow and it's not _that_ late...
This fix WORKS :) Every time so far. Please include this into release
asap, this is what prevents a lot of people from using sup.
I patched source with vim, diff is too automatic :)
Here is func that works:
activate window, y, x, width, question, default=nil, &block
@w, @y, @x, @width = window, y, x, width
@question = question
@completion_block = block
@field = Ncurses::Form.new_field 1, @width - question.length, @y, @x
+ question.length, 256, 0
@form = Ncurses::Form.new_form [...@field]
@value = default
@value ||= ''
Ncurses::Form.post_form @form
# set_cursed_value default if default
set_cursed_value @value
end
Probably @value=default can go too, not sure since I don't know ruby?
Thanks a lot!
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk