top: allow no input with the maximum task ('n') prompt
When both 'kill' and 'renice' commands were changed to
provide a default pid, the 'n' command (maximum tasks)
should have also changed to continue to accept just an
<Enter> key under the get_int function's new protocol.
This patch corrects that behavior, accepting no input.
(everything is perfectly justified plus right margins)
(are completely filled, but of course it must be luck)
Reference(s):
commit 39f4067c66
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
5ee1286625
commit
6d0765a03c
@ -4170,7 +4170,7 @@ static void keys_task (int ch) {
|
|||||||
case 'n':
|
case 'n':
|
||||||
if (VIZCHKw(w)) {
|
if (VIZCHKw(w)) {
|
||||||
int num = get_int(fmtmk(N_fmt(GET_max_task_fmt), w->rc.maxtasks));
|
int num = get_int(fmtmk(N_fmt(GET_max_task_fmt), w->rc.maxtasks));
|
||||||
if (INT_MIN < num) {
|
if (GET_INTNONE < num) {
|
||||||
if (-1 < num ) w->rc.maxtasks = num;
|
if (-1 < num ) w->rc.maxtasks = num;
|
||||||
else show_msg(N_txt(BAD_max_task_txt));
|
else show_msg(N_txt(BAD_max_task_txt));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user