From: Jim Warner Date: Thu, 7 Feb 2013 06:00:00 +0000 (-0600) Subject: top: keep cursor hidden after Inspect 'Locate' request X-Git-Tag: v3.3.7~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc5af4ae510c8133574afd707326fcfcea8ff9fe;p=procps-ng top: keep cursor hidden after Inspect 'Locate' request A recent commit, that was intended to normalize cursor handling, unintentionally exposed the cursor following an Inspect 'Locate' request. This change will hide the cursor once again through inst_view_choice's lifetime. (everything is perfectly justified plus right margins) (are completely filled, but of course it must be luck) Reference(s): commit f3a87cf634976a6d2a05c5dde19458f7a222e499 Signed-off-by: Jim Warner --- diff --git a/top/top.c b/top/top.c index 6331dfe5..39dbee0f 100644 --- a/top/top.c +++ b/top/top.c @@ -2756,6 +2756,7 @@ static inline void insp_show_pgs (int col, int row, int max) { insp_make_row(col, row); --max; } + if (max) putp(Cap_nl_clreos); } // end: insp_show_pgs @@ -2848,6 +2849,7 @@ signify_that: case '/': case 'n': insp_find_str(key, &curcol, &curlin); + putp((Cursor_state = Cap_curs_hide)); break; case '=': snprintf(buf, sizeof(buf), "%s: %s", Insp_sel->type, Insp_sel->fmts);