sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 3c9c3e4561e0997c2c74b53dfdbb2dc57df2c8a3
parent 83c7c9344b0406bdb5f96d4fd876244706a00e36
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Tue, 12 Jun 2007 20:29:23 +0000

bugfix: ignore nil ids passed to BufferManager#clear

git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@448 5c8cc53c-5e98-4d25-b20a-d8db53a31250

Diffstat:
M lib/sup/buffer.rb | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
@@ -444,6 +444,7 @@ class BufferManager
   ## a little tricky because we can't just delete_at id because ids
   ## are relative (they're positions into the array).
   def clear id
+    next unless id # not sure why this happens---thread stuff?
     @minibuf_mutex.synchronize do
       @minibuf_stack[id] = nil
       if id == @minibuf_stack.length - 1