From: wmorgan Date: Wed, 24 Jan 2007 20:56:53 +0000 (+0000) Subject: bugfixes X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=974c3731a0a91fca5dfef766d519ea108f0cbb68;p=sup bugfixes git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@282 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/mbox.rb b/lib/sup/mbox.rb index 7086a79..5b346ef 100644 --- a/lib/sup/mbox.rb +++ b/lib/sup/mbox.rb @@ -38,7 +38,7 @@ module MBox when /^$/: break when /:/: last = nil else - header[last] += line.gsub(/^\s+/, "") if last + header[last] += line.chomp.gsub(/^\s+/, "") if last end end header diff --git a/lib/sup/mbox/ssh-file.rb b/lib/sup/mbox/ssh-file.rb index 0338490..6e91c20 100644 --- a/lib/sup/mbox/ssh-file.rb +++ b/lib/sup/mbox/ssh-file.rb @@ -183,7 +183,6 @@ private say "Checking for #@fn..." @shell_mutex.synchronize { raise Errno::ENOENT, @fn unless @shell.test("-e #@fn").status == 0 } ensure - say "Not checking for #@fn any more" shutup end end diff --git a/lib/sup/modes/reply-mode.rb b/lib/sup/modes/reply-mode.rb index 5f2de09..d6a8ecf 100644 --- a/lib/sup/modes/reply-mode.rb +++ b/lib/sup/modes/reply-mode.rb @@ -128,7 +128,6 @@ protected if new_header.size != header.size || header.any? { |k, v| new_header[k] != v } - #raise "nhs: #{new_header.size} hs: #{header.size} new: #{new_header.inspect} old: #{header.inspect}" @selected_type = :user @headers[:user] = new_header end diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb index 4fb7840..c2d227e 100644 --- a/lib/sup/modes/thread-index-mode.rb +++ b/lib/sup/modes/thread-index-mode.rb @@ -280,6 +280,7 @@ class ThreadIndexMode < LineCursorMode t = @threads[curpos] or return m = t.latest_message return if m.nil? # probably won't happen + m.load_from_source! mode = ReplyMode.new m BufferManager.spawn "Reply to #{m.subj}", mode end