From ff8ef868472dd3b359c03e4ff9163bf2d113e0bf Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 26 May 2026 22:48:54 +0300 Subject: vo: fix flamegraph click mapping for expanded leaf rows --- internal/tui/flamegraph/model.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/tui/flamegraph/model.go') diff --git a/internal/tui/flamegraph/model.go b/internal/tui/flamegraph/model.go index fe9b73b..81fcb7b 100644 --- a/internal/tui/flamegraph/model.go +++ b/internal/tui/flamegraph/model.go @@ -1088,12 +1088,12 @@ func (m Model) rootSnapshotPath() string { // frameIndexAt delegates to the FrameAnimator package-level helper to convert // terminal coordinates (x, y) to a frame index, accounting for UI chrome. func (m Model) frameIndexAt(x, y int) int { - return frameIndexAt(m.frames, x, y, m.width, m.height, m.showHelp) + return frameIndexAt(m.frames, x, y, m.width, m.height, m.showHelp, strings.TrimSpace(m.heightField) != "") } // frameCoordToTargetRow delegates to the FrameAnimator package-level helper. func (m Model) frameCoordToTargetRow(dataRow, availableRows int) int { - return frameCoordToTargetRow(m.frames, dataRow, availableRows) + return frameCoordToTargetRow(m.frames, dataRow, availableRows, strings.TrimSpace(m.heightField) != "") } func (m Model) withZoomLineage(frames []tuiFrame) []tuiFrame { -- cgit v1.2.3