summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/regedit.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source3/utils/regedit.c b/source3/utils/regedit.c
index 5ca1edffe7..c41c8edb30 100644
--- a/source3/utils/regedit.c
+++ b/source3/utils/regedit.c
@@ -141,16 +141,15 @@ static void print_help(struct regedit *regedit)
move(HELP_START_Y, HELP_START_X);
clrtoeol();
- attron(A_REVERSE | A_BOLD);
- move(HELP_START_Y, HELP_START_X);
- addstr(msg);
- attroff(A_BOLD);
+ attron(A_REVERSE);
+ mvaddstr(HELP_START_Y, HELP_START_X, help);
pad = COLS - strlen(msg) - strlen(help);
for (i = 0; i < pad; ++i) {
addch(' ');
}
- addstr(help);
- attroff(A_REVERSE);
+ attron(A_BOLD);
+ addstr(msg);
+ attroff(A_REVERSE | A_BOLD);
}
static void print_heading(struct regedit *regedit)