Hi,
I see that the function TextEditor::deleteForwards() have not implemented the handling of the parameter moveInWholeWordSteps, does someone know why ?
bool TextEditor::deleteForwards (bool /*moveInWholeWordSteps*/)
{
if (selection.isEmpty() && selection.getStart() < getTotalNumChars())
setSelection (Range<int> (selection.getStart(), selection.getStart() + 1));
cut();
return true;
}
I’ve changed the source code, but I wouldn’t want to break something elsewhere.
The modified code :
bool TextEditor::deleteForwards (bool moveInWholeWordSteps)
{
if (moveInWholeWordSteps)
moveCaretTo (findWordBreakAfter (getCaretPosition()), true);
if (selection.isEmpty() && selection.getStart() < getTotalNumChars())
setSelection (Range<int> (selection.getStart(), selection.getStart() + 1));
cut();
return true;
}
