diff --git a/top/top.1 b/top/top.1 index aff7ce94..a21613c5 100644 --- a/top/top.1 +++ b/top/top.1 @@ -1019,10 +1019,11 @@ those \*(CIs applicable to \*(AM. Removes restrictions on which tasks are shown. This command will reverse any `i' (idle tasks) and `n' (max tasks) commands that might be active. -It also provides for an exit from PID monitoring, User filtering -and Other filtering. +It also provides for an exit from PID monitoring, User filtering, +Other filtering and Locate processing. See the `\-p' \*(CO for a discussion of PID monitoring, the `U' or `u' -\*(CIs for User filtering and the `O' or `o' \*(CIs for Other filtering. +\*(CIs for User filtering the `O' or `o' \*(CIs for Other filtering +and `L' or `&' \*(CIs for Locate processing. Additionally, any window that has been scrolled will be reset with this command. @@ -1631,8 +1632,8 @@ as the only display element. .TP 7 *\ \ \fB=\fR | \fB+\fR\ \ :\fIEqualize-(reinitialize)-Window(s) \fR The `=' key forces the \*(CW's \*(TD to be visible. -It also reverses any `i' (idle tasks), `n' (max tasks), `u/U' (user filter) -and `o/O' (other filter) commands that might be active. +It also reverses any `i' (idle tasks), `n' (max tasks), `u/U' (user filter), +\`o/O' (other filter) and 'L' (locate) commands that might be active. Also, if the window had been scrolled, it will be reset with this command. \*(XT 5c. SCROLLING a Window for additional information regarding vertical and horizontal scrolling. @@ -1641,7 +1642,7 @@ The `+' key does the same for all windows. The four \*(TDs will reappear, evenly balanced. They will also have retained any customizations you had previously applied, except for the `i' (idle tasks), `n' (max tasks), `u/U' -(user filter), `o/O' (other filter) and scrolling \*(CIs. +(user filter), `o/O' (other filter), `L' (locate) and scrolling \*(CIs. .TP 7 *\ \ \fBA\fR\ \ :\fIAlternate-Display-Mode\fR toggle \fR diff --git a/top/top.c b/top/top.c index 2591c3ab..a9932222 100644 --- a/top/top.c +++ b/top/top.c @@ -3852,6 +3852,11 @@ static void win_reset (WIN_t *q) { #endif Monpidsidx = 0; osel_clear(q); + q->findstr[0] = '\0'; +#ifndef USE_X_COLHDR + // NOHISEL_xxx is redundant (already turned off by osel_clear) + OFFw(q, NOHIFND_xxx | NOHISEL_xxx); +#endif } // end: win_reset @@ -4654,7 +4659,8 @@ static void keys_task (int ch) { TOGw(w, Show_HICOLS); capsmk(w); #else - if (ENUviz(w, w->rc.sortindx)) { + if (ENUviz(w, w->rc.sortindx) + && !CHKw(w, NOHIFND_xxx | NOHISEL_xxx)) { TOGw(w, Show_HICOLS); if (ENUpos(w, w->rc.sortindx) < w->begpflg) { if (CHKw(w, Show_HICOLS)) w->begpflg += 2;