Skip to content

Commit 54cf752

Browse files
Ravi Bangoriaacmel
authored andcommitted
perf annotate/tui: Re-render title bar after switching back from script browser
The 'perf annotate' TUI browser provides a 'r' hot key to switch to a script browser. But the annotate browser title bar becomes hidden while switching back from script browser. Fix it. Signed-off-by: Ravi Bangoria <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexey Budankov <[email protected]> Cc: Changbin Du <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Jin Yao <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Leo Yan <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Song Liu <[email protected]> Cc: Taeung Song <[email protected]> Cc: Thomas Richter <[email protected]> Cc: Yisheng Xie <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 0d6f94f commit 54cf752

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tools/perf/ui/browsers/annotate.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -754,10 +754,9 @@ static int annotate_browser__run(struct annotate_browser *browser,
754754
"? Search string backwards\n");
755755
continue;
756756
case 'r':
757-
{
758-
script_browse(NULL, NULL);
759-
continue;
760-
}
757+
script_browse(NULL, NULL);
758+
annotate_browser__show(&browser->b, title, help);
759+
continue;
761760
case 'k':
762761
notes->options->show_linenr = !notes->options->show_linenr;
763762
break;

0 commit comments

Comments
 (0)