]> git.cworth.org Git - sup/commitdiff
bugfix: discarded drafts don't crash everything upon redraw
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Thu, 24 May 2007 03:22:59 +0000 (03:22 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Thu, 24 May 2007 03:22:59 +0000 (03:22 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@414 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/modes/thread-view-mode.rb

index 6693f68052790fcfd9a5e509e72d69f3ecc4ab4c..a088c06bc482663252ecd2a3ef20dafcaacb3c27 100644 (file)
@@ -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