]> granicus.if.org Git - procps-ng/commitdiff
top: keep cursor hidden after Inspect 'Locate' request
authorJim Warner <james.warner@comcast.net>
Thu, 7 Feb 2013 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@enc.com.au>
Sat, 23 Feb 2013 21:43:44 +0000 (08:43 +1100)
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 <james.warner@comcast.net>
top/top.c

index 6331dfe59cdce8ea04ce1fc74af6102095542f49..39dbee0f11d8dd3dcc696d7cf75087e5925961e5 100644 (file)
--- 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);