Place the cursor better on buttons.

Stop field display attributes getting clobbered.
This commit is contained in:
Paul Richards 1995-01-10 04:10:55 +00:00
parent 7f8bb70cff
commit ba1efeeea4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5462

View File

@ -219,6 +219,7 @@ field_action(struct form *form)
for (;;) {
wattron(form->window, F_SELATTR);
disp_action(form, form->current_field);
wmove(form->window, field->y, field->x);
ch = wgetch(form->window);
if (ch == F_ACCEPT) {
(*field->field.action->fn)();
@ -297,7 +298,6 @@ next_field(struct form *form, int ch)
return (0);
print_status("");
field->attr = F_DEFATTR;
return (1);
}