fix possible wrong line index when lefttoken on LF is on another line

This commit is contained in:
Basile Burg 2019-02-02 17:09:21 +01:00
parent b140ac1c84
commit 7d372c1eba
1 changed files with 1 additions and 1 deletions

View File

@ -1722,7 +1722,7 @@ begin
// add the first token of the line indent // add the first token of the line indent
if t^.position.x > 0 then if t^.position.x > 0 then
begin begin
s := LineText[1 .. t^.position.x]; s := lines[t^.position.y-1][1 .. t^.position.x];
for c in s do for c in s do
begin begin
tabCount += Byte(c = #9); tabCount += Byte(c = #9);