Bug report from a GExperts user:
The Code Proofreader does not correct word case when I press enter at the end of a word. Tested in D6/RS10. Example:
Begin not replaced with begin
"Do" not replaced with do
.... etc
Steps: Turn on Code Proofreader and Dictionary Replacement.
Type Do or Begin at the end of a line of code and press enter and it is not case corrected. It is corrected if you press space after the Do or Begin.
This is caused by the following code in GX_ProofreaderCorrection.TAutoTypeWriterNotifier.SetupProofing:
// Read the part of the text in the current source line
// that is located in front of the current cursor position.
SourceString := GxOtaGetPreceedingCharactersInLine(EditView);
if IsEmpty(SourceString) then
Exit;
Since pressing enter moves the cursor to the next, empty line, IsEmpty(SourceString) will always be true.
fixed in revision #5083