Menu

#21 Code Proofreader AutoCorrect upon Enter

Closed
closed-fixed
6
4 days ago
2016-07-16
Erik Berry
No

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.

Discussion

  • Erik Berry

    Erik Berry - 2016-07-31
    • Group: Closed --> New
     
  • Thomas Mueller

    Thomas Mueller - 2017-02-26

    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.

     
  • Thomas Mueller

    Thomas Mueller - 4 days ago
    • status: open --> closed-fixed
    • Group: New --> Closed
     
  • Thomas Mueller

    Thomas Mueller - 4 days ago

    fixed in revision #5083

     

Log in to post a comment.