Ver Fonte

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

Bill Hoffman há 21 anos atrás
pai
commit
9fe2ab2f71
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      Source/CursesDialog/cmCursesMainForm.cxx

+ 4 - 1
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 == '/' )
         {