From bc5af4ae510c8133574afd707326fcfcea8ff9fe Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Thu, 7 Feb 2013 00:00:00 -0600 Subject: [PATCH] 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 --- top/top.c | 2 ++ 1 file changed, 2 insertions(+) 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);