From 4702b8d2c066038a2dfc46d9334034223a90da3d Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 11 Jul 2011 16:51:29 +0000 Subject: [PATCH] Add a leading space to the status messages output after toggling the 'C' and 'H' flags at runtime. This matches messages output for other toggles which leave the first column in the message blank to hold the cursor. PR: bin/158775 Submitted by: arundel MFC after: 3 days --- contrib/top/top.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/top/top.c b/contrib/top/top.c index 896338593df3..4e4d86ded076 100644 --- a/contrib/top/top.c +++ b/contrib/top/top.c @@ -1020,7 +1020,7 @@ char *argv[]; case CMD_thrtog: ps.thread = !ps.thread; new_message(MT_standout | MT_delayed, - "Displaying threads %s", + " Displaying threads %s", ps.thread ? "separately" : "as a count"); header_text = format_header(uname_field); reset_display(); @@ -1029,7 +1029,7 @@ char *argv[]; case CMD_wcputog: ps.wcpu = !ps.wcpu; new_message(MT_standout | MT_delayed, - "Displaying %sCPU", + " Displaying %sCPU", ps.wcpu ? "W" : ""); header_text = format_header(uname_field); reset_display();