diff options
Diffstat (limited to 'internal/tui/flamegraph/model.go')
| -rw-r--r-- | internal/tui/flamegraph/model.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/tui/flamegraph/model.go b/internal/tui/flamegraph/model.go index d73bd65..16f82b6 100644 --- a/internal/tui/flamegraph/model.go +++ b/internal/tui/flamegraph/model.go @@ -443,6 +443,9 @@ func (m Model) Paused() bool { // SetViewport updates model render dimensions. func (m *Model) SetViewport(width, height int) { + if m.width == width && m.height == height { + return + } m.width = width m.height = height m.rebuildFrames(true) |
