diff options
-rw-r--r-- | tools/perf/util/ui/browsers/hists.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/ui/browsers/hists.c b/tools/perf/util/ui/browsers/hists.c index 94e1ab0badb1..d76287513525 100644 --- a/tools/perf/util/ui/browsers/hists.c +++ b/tools/perf/util/ui/browsers/hists.c | |||
@@ -864,6 +864,8 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events, | |||
864 | switch (key) { | 864 | switch (key) { |
865 | case NEWT_KEY_TAB: | 865 | case NEWT_KEY_TAB: |
866 | case NEWT_KEY_UNTAB: | 866 | case NEWT_KEY_UNTAB: |
867 | if (nr_events == 1) | ||
868 | continue; | ||
867 | /* | 869 | /* |
868 | * Exit the browser, let hists__browser_tree | 870 | * Exit the browser, let hists__browser_tree |
869 | * go to the next or previous | 871 | * go to the next or previous |