From 9421363ebd4b0751d95159651f9aa446702b1b50 Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Tue, 3 May 2022 23:01:34 +0200 Subject: [PATCH] Ignore mouse clicks on status bar --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 93efdf0..829148b 100644 --- a/main.go +++ b/main.go @@ -405,6 +405,10 @@ func (m *model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch msg.Type { case tea.MouseLeft: m.showCursor = true + if msg.Y >= m.height { + // Clicked on status bar or search input. + break + } clickedPath, ok := m.lineNumberToPath[m.offset+msg.Y] if ok { if m.canBeExpanded[clickedPath] {