aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liška <[email protected]>2021-02-15 13:45:25 +0100
committerArnaldo Carvalho de Melo <[email protected]>2021-02-17 15:25:18 -0300
commit4fd008476c46422bb25451c90b74d99daa5382ff (patch)
treebf4bb97b34d84e9ff515c9b70e9b204e70af1777
parent15bebcd72bf5bbc1e83805c939bc0d18994afba1 (diff)
perf annotate: Do not jump after 'k' is pressed
Do not jump when 'k' is pressed, the cursor show stay where it is. Right now, it jumps to the currently selected hot instruction. Signed-off-by: Martin Liška <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r--tools/perf/ui/browsers/annotate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/ui/browsers/annotate.c b/tools/perf/ui/browsers/annotate.c
index bd77825fd5a1..35b82caf8090 100644
--- a/tools/perf/ui/browsers/annotate.c
+++ b/tools/perf/ui/browsers/annotate.c
@@ -759,7 +759,7 @@ static int annotate_browser__run(struct annotate_browser *browser,
continue;
case 'k':
notes->options->show_linenr = !notes->options->show_linenr;
- break;
+ continue;
case 'H':
nd = browser->curr_hot;
break;