From: wmorgan Date: Fri, 23 Nov 2007 22:17:52 +0000 (+0000) Subject: buffer bugfix: focused buffer not being set? X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=3ee44ab0bc39f3669cc4025807d129725104cd46;p=sup buffer bugfix: focused buffer not being set? git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@708 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb index 277bc3e..d04f481 100644 --- a/lib/sup/buffer.rb +++ b/lib/sup/buffer.rb @@ -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