Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <mliska@suse.cz>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: http://lore.kernel.org/lkml/65416cff-4eb6-713c-a174-2aa43fa64332@suse.cz
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Martin Liška and committed by
Arnaldo Carvalho de Melo
4fd00847 15bebcd7

+1 -1
+1 -1
tools/perf/ui/browsers/annotate.c
··· 759 759 continue; 760 760 case 'k': 761 761 notes->options->show_linenr = !notes->options->show_linenr; 762 - break; 762 + continue; 763 763 case 'H': 764 764 nd = browser->curr_hot; 765 765 break;