BUG: fix for 981 cursor returns to correct place in help screen

This commit is contained in:
Bill Hoffman 2004-07-19 13:01:40 -04:00
parent c5be64081a
commit 9fe2ab2f71
1 changed files with 4 additions and 1 deletions

View File

@ -1038,8 +1038,10 @@ void cmCursesMainForm::HandleInput()
CurrentForm = msgs; CurrentForm = msgs;
msgs->Render(1,1,x,y); msgs->Render(1,1,x,y);
msgs->HandleInput(); msgs->HandleInput();
CurrentForm = this; CurrentForm = this;
this->Render(1,1,x,y); this->Render(1,1,x,y);
set_current_field(m_Form, cur);
delete msgs;
} }
// display last errors // display last errors
else if ( key == 'l' ) else if ( key == 'l' )
@ -1052,6 +1054,7 @@ void cmCursesMainForm::HandleInput()
msgs->HandleInput(); msgs->HandleInput();
CurrentForm = this; CurrentForm = this;
this->Render(1,1,x,y); this->Render(1,1,x,y);
delete msgs;
} }
else if ( key == '/' ) else if ( key == '/' )
{ {