commit fba7902420ca7f704e594f8ac64d612f2c029652
parent 0a1ad0f615cc1a83b5ffc08ad5359a06d8b5028c
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Thu, 8 Feb 2007 21:39:29 +0000
various updates
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@308 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
4 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/doc/FAQ.txt b/doc/FAQ.txt
@@ -8,6 +8,9 @@ Q: If you love GMail so much, why not just use it?
A: I hate ads, I hate using a mouse, and I hate non-programmability
and non-extensibility.
+ Also, GMail encourages top-posting in a variety of ways. THIS CANNOT BE
+ TOLERATED!
+
Q: Why the console?
A: There are many advantages to the console. A
few keystrokes can accomplish the work of a hundred mouse clicks
diff --git a/doc/TODO b/doc/TODO
@@ -1,5 +1,7 @@
for next release
----------------
+bugfix: STILL new messages, drafts sometimes not showing up in inbox
+make 'a' archive in thread-view-mode
message attachments
warnings: top-posting, attachments
bugfix: deleted threads are showing up
@@ -32,7 +34,6 @@ toggle wrapping
done
----
-x bugfix: new messages, drafts sometimes not showing up in inbox
x bugfix: killed threads
x bugfix: resuming a draft asks before discard
x add a flag to sup-import to force the creation of a new source (see http://rubyforge.org/forum/forum.php?thread_id=10973&forum_id=10340)
diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
@@ -309,6 +309,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 = ForwardMode.new m
BufferManager.spawn "Forward of #{m.subj}", mode
mode.edit
diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb
@@ -287,7 +287,7 @@ private
@text += chunk_to_lines m, nil, @text.length, depth, parent
next
end
- l = @layout[m]
+ l = @layout[m] or next # TODO: figure out why this is nil sometimes
## build the patina
text = chunk_to_lines m, l.state, @text.length, depth, parent, @layout[m].color