From: Martin Liška Date: Mon, 15 Feb 2021 12:45:25 +0000 (+0100) Subject: perf annotate: Do not jump after 'k' is pressed X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4fd008476c46422bb25451c90b74d99daa5382ff;p=linux.git 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 Tested-by: Arnaldo Carvalho de Melo Link: http://lore.kernel.org/lkml/65416cff-4eb6-713c-a174-2aa43fa64332@suse.cz Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/ui/browsers/annotate.c b/tools/perf/ui/browsers/annotate.c index bd77825fd5a15..35b82caf8090e 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;