parent
9adcf939e9
commit
a108be50c7
|
@ -329,8 +329,10 @@ class Application(object):
|
|||
if blist.slots[i].is_empty():
|
||||
if blist.hidden_buffers:
|
||||
blist.set_slot(i, blist.hidden_buffers[0])
|
||||
else:
|
||||
elif active_slot.window:
|
||||
blist.set_slot(i, active_slot.window.buffer)
|
||||
else:
|
||||
blist.set_slot(i, None)
|
||||
assert blist.slots[i].window is not None
|
||||
def close_buffer_by_name(self, name):
|
||||
if self.has_buffer_name(name):
|
||||
|
|
|
@ -17,7 +17,6 @@ class Slot(object):
|
|||
self.window.set_size(self.width, self.height)
|
||||
def set(self, w):
|
||||
self.window = w
|
||||
#self.resize(self.height, self.width, self.y_offset, self.x_offset)
|
||||
w.set_size(self.width, self.height)
|
||||
def unset(self):
|
||||
if not self.is_empty():
|
||||
|
|
Loading…
Reference in New Issue