]> git.cworth.org Git - sup/commitdiff
buffer bugfix: focused buffer not being set?
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 23 Nov 2007 22:17:52 +0000 (22:17 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 23 Nov 2007 22:17:52 +0000 (22:17 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@708 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/buffer.rb

index 277bc3efa229454757687588a3b15b730fdea357..d04f481b8bed88391594ae682a85956c50e0cde8 100644 (file)
@@ -345,7 +345,9 @@ class BufferManager
       ## TODO: something intelligent here
       ## for now I will simply prohibit killing the inbox buffer.
     else
-      raise_to_front @buffers.last
+      last = @buffers.last
+      @focus_buf ||= last
+      raise_to_front last
     end
   end