projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1ec5fe
)
perf newt: Exit browser unconditionally when CTRL+C, q or Q is pressed
author
Arnaldo Carvalho de Melo
<
[email protected]
>
Sun, 16 May 2010 00:06:58 +0000
(21:06 -0300)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Sun, 16 May 2010 00:06:58 +0000
(21:06 -0300)
ESC still asks for confirmation.
Suggested-by: Ingo Molnar <
[email protected]
>
Cc: Frédéric Weisbecker <
[email protected]
>
Cc: Mike Galbraith <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Tom Zanussi <
[email protected]
>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/newt.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/newt.c
b/tools/perf/util/newt.c
index 094887f45d05bc50f79e72c6dde81820de026973..139eb1a16cd8e4992801ede08a90e0d98cc93454 100644
(file)
--- a/
tools/perf/util/newt.c
+++ b/
tools/perf/util/newt.c
@@
-837,9
+837,10
@@
int hists__browse(struct hists *self, const char *helpline, const char *input_na
if (es.reason == NEWT_EXIT_HOTKEY) {
if (toupper(es.u.key) == 'A')
goto do_annotate;
- if (es.u.key == NEWT_KEY_ESCAPE ||
- toupper(es.u.key) == 'Q' ||
- es.u.key == CTRL('c')) {
+ if (toupper(es.u.key) == 'Q' ||
+ es.u.key == CTRL('c'))
+ break;
+ if (es.u.key == NEWT_KEY_ESCAPE) {
if (dialog_yesno("Do you really want to exit?"))
break;
else