mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
Fix mouse support in command bar
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user