diff options
Diffstat (limited to 'tools')
-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 b7901099eedb..ef6ccefad432 100644 --- a/tools/perf/util/ui/browsers/hists.c +++ b/tools/perf/util/ui/browsers/hists.c | |||
@@ -1107,12 +1107,14 @@ browse_hists: | |||
1107 | pos = list_entry(evlist->entries.next, struct perf_evsel, node); | 1107 | pos = list_entry(evlist->entries.next, struct perf_evsel, node); |
1108 | else | 1108 | else |
1109 | pos = list_entry(pos->node.next, struct perf_evsel, node); | 1109 | pos = list_entry(pos->node.next, struct perf_evsel, node); |
1110 | perf_evlist__set_selected(evlist, pos); | ||
1110 | goto browse_hists; | 1111 | goto browse_hists; |
1111 | case NEWT_KEY_UNTAB: | 1112 | case NEWT_KEY_UNTAB: |
1112 | if (pos->node.prev == &evlist->entries) | 1113 | if (pos->node.prev == &evlist->entries) |
1113 | pos = list_entry(evlist->entries.prev, struct perf_evsel, node); | 1114 | pos = list_entry(evlist->entries.prev, struct perf_evsel, node); |
1114 | else | 1115 | else |
1115 | pos = list_entry(pos->node.prev, struct perf_evsel, node); | 1116 | pos = list_entry(pos->node.prev, struct perf_evsel, node); |
1117 | perf_evlist__set_selected(evlist, pos); | ||
1116 | goto browse_hists; | 1118 | goto browse_hists; |
1117 | case 'q': | 1119 | case 'q': |
1118 | case CTRL('c'): | 1120 | case CTRL('c'): |