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-Tag: v0.3~120 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7d9ea41ad08db5402c3d569b067e40a93501a6f1;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 beb7bdf..8c1a3ba 100644 --- a/src/cursesdisplay.c +++ b/src/cursesdisplay.c @@ -1473,6 +1473,7 @@ void *handle_keyboard(void *p) current_view = previous_view; previous_view = process_details; } + selected_line = 0; update_current_view(); break;