Subject: [sup-talk] Two small fixes

From: [email-masked] (Magnus Therning)
Date: Thu, 06 Sep 2007 08:21:59 +0100

Yesterday I ran into some warnings when using sup from SVN:

=== modified file 'lib/sup/message.rb'
--- lib/sup/message.rb  2007-09-01 06:29:01 +0000
+++ lib/sup/message.rb  2007-09-05 18:04:48 +0000
@@ -55,6 +55,7 @@
       @raw_content = encoded_content.decode
       charset = encoded_content.charset
 
+      @lines = ""
       if @content_type =~ /^text\/plain\b/
         @lines = Message.convert_from(@raw_content, charset).split("\n")
       else

=== modified file 'lib/sup/textfield.rb'
--- lib/sup/textfield.rb        2007-08-06 00:05:54 +0000
+++ lib/sup/textfield.rb        2007-09-05 18:10:35 +0000
@@ -46,6 +46,7 @@
   def position_cursor
     @w.attrset Colormap.color_for(:none)
     @w.mvaddstr @y, 0, @question
+    @value = ""
     Ncurses.curs_set 1
     Ncurses::Form.form_driver @form, Ncurses::Form::REQ_END_FIELD
     Ncurses::Form.form_driver @form, Ncurses::Form::REQ_NEXT_CHAR if @value && @value =~ / $/ # fucking RETARDED!!!!

The fixes are probably not the right ones, but they did make sup shut up about
undefined members.

-- 
Magnus Therning                             (OpenPGP: 0xAB4DFBA4)
magnus?therning?org             Jabber: magnus?therning?gmail?com
http://therning.org/magnus

What if I don't want to obey the laws? Do they throw me in jail with
the other bad monads?
     -- Daveman

---

From: [email-masked] (William Morgan)
Date: Tue, 11 Sep 2007 16:28:53 -0700

> Yesterday I ran into some warnings when using sup from SVN:

Fixed, thanks! How did you get the warnings to pop up? I only
occasionally see warnings for an instant before curses takes over the
screen...

-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Magnus Therning)
Date: Wed, 12 Sep 2007 08:06:25 +0100

>occasionally see warnings for an instant before curses takes over the

I'm not sure why the warnings linger long enough for me to catch them.
Could be my choice of terminal (ROXTerm)?

/M

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070912/6124205c/attachment.bin