summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesStringWidget.cxx
diff options
context:
space:
mode:
authorMatthew Woehlke <matthew.woehlke@kitware.com>2012-10-24 18:46:46 (GMT)
committerBrad King <brad.king@kitware.com>2012-11-13 18:44:33 (GMT)
commitd424de48dc3e653c5b15138d1b5e58b948b48945 (patch)
tree45798832c35419d5fc04ef365dd10009de0e8851 /Source/CursesDialog/cmCursesStringWidget.cxx
parentf551fa62450379b41b510054948e097582538357 (diff)
downloadCMake-d424de48dc3e653c5b15138d1b5e58b948b48945.zip
CMake-d424de48dc3e653c5b15138d1b5e58b948b48945.tar.gz
CMake-d424de48dc3e653c5b15138d1b5e58b948b48945.tar.bz2
ccmake: Allow DEL key in first column
Change test if DEL key is allowed from 'curcol > 0' to 'curcol >= 0', as deleting forward is reasonable in the first column (and probably expected by users to work). Support for DEL was first added in commit b3b43508 (BUG: fix for 6462, delete key should delete the current char, 2008-08-19). The commit appears to have copied the original logic from the backspace code so the old 'curcol > 0' logic was accidental rather than intentional.
Diffstat (limited to 'Source/CursesDialog/cmCursesStringWidget.cxx')
-rw-r--r--Source/CursesDialog/cmCursesStringWidget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CursesDialog/cmCursesStringWidget.cxx b/Source/CursesDialog/cmCursesStringWidget.cxx
index 5c7414f..bd1ff71 100644
--- a/Source/CursesDialog/cmCursesStringWidget.cxx
+++ b/Source/CursesDialog/cmCursesStringWidget.cxx
@@ -175,7 +175,7 @@ bool cmCursesStringWidget::HandleInput(int& key, cmCursesMainForm* fm,
}
else if ( key == ctrl('d') ||key == KEY_DC )
{
- if ( form->curcol > 0 )
+ if ( form->curcol >= 0 )
{
form_driver(form, REQ_DEL_CHAR);
}