]> granicus.if.org Git - procps-ng/commit
top: extend '=' key to include active 'locate' request
authorJim Warner <james.warner@comcast.net>
Sat, 24 Oct 2015 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Wed, 28 Oct 2015 10:01:49 +0000 (21:01 +1100)
commit94e4749be3ea218a57c22034dd45b80325c35586
tree55a7595aa158d2625b6f2df1c8f60e50865a085c
parent489d23a132a03c80c4d48e10c13b21ad2e318fb8
top: extend '=' key to include active 'locate' request

It is documented behavior that when certain other keys
are active, sorts column highlighting will temporarily
be disabled. Among those keys is the 'L' (locate/find)
provision. The equals ('=') key can be used to restore
column highlighting by resetting other keys, except 1.

When a locate/find is active, the '=' key will have no
effect on 'x' column highlighting, which still remains
disabled. Further, when 'L' is active an 'x' keystroke
is processed changing the state of column highlighting
but without any visual clue (since it's yet disabled).

So this commit just extends the '=' key to embrace 'L'
processing resets, just like other highlight disabling
keys while avoiding 'x' state changes if approproiate.

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.1
top/top.c