Check-in [e74a31c95f]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Bugfix: reset the ColIndex when starting a new line.
Timelines: family | ancestors | descendants | both | lazarus
Files: files | file ages | folders
SHA1:e74a31c95ffc2169f580ebfb6c4c5e5162a825f8
User & Date: tinus 2014-08-06 21:11:52
Context
2014-08-07
03:50
The Wide Diff highlighter is done (for now; inline diffs can be done later). check-in: abecf9f927 user: tinus tags: lazarus
2014-08-06
21:11
Bugfix: reset the ColIndex when starting a new line. check-in: e74a31c95f user: tinus tags: lazarus
20:53
First attempt at using our own wide diff highlighter (which fails with a Range Check Error). check-in: 2ccce4c882 user: tinus tags: lazarus
Changes

Changes to src/synhighlighterdiffwide.pas.

   212    212         AddColDef(FContentWidth, hsContent);
   213    213         AddColDef(1, hsSpace);
   214    214         AddColDef(1, hsMarkerEdited);
   215    215         AddColDef(1, hsSpace);
   216    216         AddColDef(5, hsLineNumber);
   217    217         AddColDef(2, hsSpace);
   218    218         AddColDef(FContentWidth, hsContent);
   219         -      FColIndex := 0;
   220    219         // set the token to the entire line, and set the styler to HeaderAttri
   221    220         SetToken(1, -1, hsHeader);
   222    221       end;
   223    222       '.': begin // divider
   224    223         // set the token to the entire line, and set the styler to DividerAttri
   225    224         SetToken(1, -1, hsDivider);
   226    225       end;
   227    226       ' ', '0'..'9': begin // a diff line
   228    227         FLineType := ' ';
   229    228         // set the token to the first 5 chars, and set the styler to LineNumberAttri
          229  +      FColIndex := 0;
   230    230         SetToken(1, 5, hsLineNumber);
   231    231       end;
   232    232       else begin // unknown
   233    233         FLineType := '?';
   234    234         // set the token to the entire line, and set the styler to UnknownAttri
   235    235         SetToken(1, -1, hsUnknown);
   236    236       end;