summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx
index 2a8b299..ae89e07 100644
--- a/Source/CursesDialog/cmCursesMainForm.cxx
+++ b/Source/CursesDialog/cmCursesMainForm.cxx
@@ -1072,7 +1072,7 @@ void cmCursesMainForm::HandleInput()
}
}
// delete cache entry
- else if ( key == 'd' )
+ else if ( key == 'd' && m_NumberOfVisibleEntries )
{
m_OkToGenerate = false;
FIELD* cur = current_field(m_Form);