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.
This commit is contained in:
Matthew Woehlke 2012-10-24 14:46:46 -04:00 committed by Brad King
parent f551fa6245
commit d424de48dc
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ bool cmCursesStringWidget::HandleInput(int& key, cmCursesMainForm* fm,
} }
else if ( key == ctrl('d') ||key == KEY_DC ) else if ( key == ctrl('d') ||key == KEY_DC )
{ {
if ( form->curcol > 0 ) if ( form->curcol >= 0 )
{ {
form_driver(form, REQ_DEL_CHAR); form_driver(form, REQ_DEL_CHAR);
} }