]> git.cworth.org Git - sup/commitdiff
bugfix: ignore nil ids passed to BufferManager#clear
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Tue, 12 Jun 2007 20:29:23 +0000 (20:29 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Tue, 12 Jun 2007 20:29:23 +0000 (20:29 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@448 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/buffer.rb

index bb94fbe60ea87107c036c07732b8faf455af5a57..cfcf40b1cfe71f504f5d7d5213292c018e090099 100644 (file)
@@ -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