Menu

#37 Code proofreader fails with tabs in line

Closed
closed-fixed
nobody
None
5
2019-03-02
2017-04-03
No

The code proofreader at best doesn't work when there are tabs on the line, and at worst corrupts the line.

I've tried fixing it, and the following appears to work, although I've not extensively tested it, especially to see if it breaks something else.

In GX_OtaUtils.GxOtaGetPreceedingCharactersInLine, replace "EditPos.Col - 1" with "CharPos.CharIndex" in the following two places:

  • Where LineStartPos is set
  • Where LineLength is set

Discussion

  • Thomas Mueller

    Thomas Mueller - 2017-04-04
    • Group: Closed --> New
     
  • Thomas Mueller

    Thomas Mueller - 2018-01-27
    • status: open --> closed-fixed
    • Group: New --> Closed
     
  • Thomas Mueller

    Thomas Mueller - 2018-01-27

    Your proposed fix works. Thanks.

     

    Last edit: Thomas Mueller 2018-03-16

Log in to post a comment.