Fix mouse support in command bar

This commit is contained in:
Zachary Yedidia
2020-06-07 15:46:12 -04:00
parent 397fe634d7
commit 44c1929f9d

View File

@@ -332,7 +332,7 @@ func (h *BufPane) HandleEvent(event tcell.Event) {
switch e.Buttons() { switch e.Buttons() {
case tcell.Button1: case tcell.Button1:
_, my := e.Position() _, my := e.Position()
if h.Buf.Settings["statusline"].(bool) && my >= h.GetView().Y+h.GetView().Height-1 { if h.Buf.Type.Kind != buffer.BTInfo.Kind && h.Buf.Settings["statusline"].(bool) && my >= h.GetView().Y+h.GetView().Height-1 {
cancel = true cancel = true
} }
case tcell.ButtonNone: case tcell.ButtonNone: