From: wmorgan Date: Thu, 24 May 2007 03:22:59 +0000 (+0000) Subject: bugfix: discarded drafts don't crash everything upon redraw X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=97ee864e6704b7cfe0ec706c9ec8bc7ba16f357c;p=sup 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 --- diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb index 6693f68..a088c06 100644 --- 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