Method: Amun::Windows::MiniBufferWindow#attach

Defined in:
lib/amun/windows/mini_buffer_window.rb

#attach(frame) ⇒ Object

attach the mini buffer to a frame of your choice, that will make it replace the echo are in this frame



45
46
47
48
49
50
51
52
53
54
55
# File 'lib/amun/windows/mini_buffer_window.rb', line 45

def attach(frame)
  detach if attached?
  self.size = Rect.new(
    top: frame.top + frame.height - 1,
    left: frame.left,
    width: frame.width,
    height: 1
  )
  @frame = frame
  @frame.mini_buffer = self
end