commit 97ee864e6704b7cfe0ec706c9ec8bc7ba16f357c
parent 448d2eeac1f8fd2243b313577bdda8e505a2357e
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Thu, 24 May 2007 03:22:59 +0000
bugfix: discarded drafts don't crash everything upon redraw
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@414 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb
@@ -309,6 +309,8 @@ private
end
l = @layout[m]
+ next unless @layout[m].state # skip discarded drafts
+
## build the patina
text = chunk_to_lines m, l.state, @text.length, depth, parent, l.color, l.star_color