From 6b6e7a1c493d3700a5c28bb3439bff8955e49c08 Mon Sep 17 00:00:00 2001 From: Michael Langfermann Date: Mon, 2 Mar 2020 20:02:41 +0100 Subject: [PATCH] Fix search state for changes introduced in 2278e4cd --- flamegraph.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flamegraph.pl b/flamegraph.pl index 54e56b5a..a01cc273 100755 --- a/flamegraph.pl +++ b/flamegraph.pl @@ -761,8 +761,10 @@ sub flow { var params = get_params(); if (params.x && params.y) zoom(find_group(document.querySelector('[x="' + params.x + '"][y="' + params.y + '"]'))); - if (params.s) - search(params.s); + if (params.s) { + currentSearchTerm = params.s; + search(); + } } // event listeners