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:
parent
f551fa6245
commit
d424de48dc
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user