From mboxrd@z Thu Jan 1 00:00:00 1970 From: brenocon@gmail.com (Brendan O'Connor) Date: Wed, 14 Nov 2007 08:17:28 +0000 Subject: [sup-talk] bugfix to message-chunks.rb Message-ID: <1195028091-sup-5871@aa0-000-6.u.powerset.com> I was getting some crashes and tracked it down to this line. This patch makes the crash go away, so I think it's a bugfix (local variable masking the accessor?) but am not sure. Index: lib/sup/message-chunks.rb =================================================================== --- lib/sup/message-chunks.rb (revision 698) +++ lib/sup/message-chunks.rb (working copy) @@ -111,7 +111,7 @@ @lines = lines.map { |l| l.chomp.wrap WRAP_LEN }.flatten # wrap ## trim off all empty lines except one - lines.pop while lines.last =~ /^\s*$/ + @lines.pop while @lines.last =~ /^\s*$/ end def inlineable?; true end