summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-07-19 17:01:40 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-07-19 17:01:40 (GMT)
commit9fe2ab2f717a81579c229fdc65a16e6d715a487c (patch)
tree32db2f928dec6d7d3f9a8bfbd46bf4e150e0b485 /Source/CursesDialog
parentc5be64081ad6d5a6e0da342c610c7ec712bd9dba (diff)
downloadCMake-9fe2ab2f717a81579c229fdc65a16e6d715a487c.zip
CMake-9fe2ab2f717a81579c229fdc65a16e6d715a487c.tar.gz
CMake-9fe2ab2f717a81579c229fdc65a16e6d715a487c.tar.bz2
BUG: fix for 981 cursor returns to correct place in help screen
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx
index aa81203..62b9657 100644
--- a/Source/CursesDialog/cmCursesMainForm.cxx
+++ b/Source/CursesDialog/cmCursesMainForm.cxx
@@ -1038,8 +1038,10 @@ void cmCursesMainForm::HandleInput()
CurrentForm = msgs;
msgs->Render(1,1,x,y);
msgs->HandleInput();
- CurrentForm = this;
+ CurrentForm = this;
this->Render(1,1,x,y);
+ set_current_field(m_Form, cur);
+ delete msgs;
}
// display last errors
else if ( key == 'l' )
@@ -1052,6 +1054,7 @@ void cmCursesMainForm::HandleInput()
msgs->HandleInput();
CurrentForm = this;
this->Render(1,1,x,y);
+ delete msgs;
}
else if ( key == '/' )
{