Commit 4fd00847 authored by Martin Liška's avatar Martin Liška Committed by Arnaldo Carvalho de Melo

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: default avatarMartin Liška <mliska@suse.cz>
Tested-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Link: http://lore.kernel.org/lkml/65416cff-4eb6-713c-a174-2aa43fa64332@suse.czSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 15bebcd7
...@@ -759,7 +759,7 @@ static int annotate_browser__run(struct annotate_browser *browser, ...@@ -759,7 +759,7 @@ static int annotate_browser__run(struct annotate_browser *browser,
continue; continue;
case 'k': case 'k':
notes->options->show_linenr = !notes->options->show_linenr; notes->options->show_linenr = !notes->options->show_linenr;
break; continue;
case 'H': case 'H':
nd = browser->curr_hot; nd = browser->curr_hot;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment