From: magnus@therning.org (Magnus Therning)
Subject: [sup-talk] Two small fixes
Date: Thu, 06 Sep 2007 08:21:59 +0100 [thread overview]
Message-ID: <1189063161-sup-9162@tatooine> (raw)
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
next reply other threads:[~2007-09-06 7:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-06 7:21 Magnus Therning [this message]
2007-09-11 23:28 ` William Morgan
2007-09-12 7:06 ` Magnus Therning
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1189063161-sup-9162@tatooine \
--to=magnus@therning.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox