From: Julien Desfossez Date: Mon, 4 Mar 2013 19:24:55 +0000 (-0500) Subject: Reset selected_line while switching to process_details view and back X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=664c7091ec1b441741bdea572594e0b05014d196;p=lttngtop.git Reset selected_line while switching to process_details view and back Signed-off-by: Dmitry Semyonov Signed-off-by: Julien Desfossez --- diff --git a/src/cursesdisplay.c b/src/cursesdisplay.c index 0e2b567..7f52c8b 100644 --- a/src/cursesdisplay.c +++ b/src/cursesdisplay.c @@ -1629,6 +1629,7 @@ void *handle_keyboard(void *p) current_view = previous_view; previous_view = process_details; } + selected_line = 0; update_current_view(); break;