From 7d372c1eba901a669f6ac6bb3e9f15dc87b8ce83 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Sat, 2 Feb 2019 17:09:21 +0100 Subject: [PATCH] fix possible wrong line index when lefttoken on LF is on another line --- src/u_synmemo.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/u_synmemo.pas b/src/u_synmemo.pas index 732171ea..4a37d7e2 100644 --- a/src/u_synmemo.pas +++ b/src/u_synmemo.pas @@ -1722,7 +1722,7 @@ begin // add the first token of the line indent if t^.position.x > 0 then begin - s := LineText[1 .. t^.position.x]; + s := lines[t^.position.y-1][1 .. t^.position.x]; for c in s do begin tabCount += Byte(c = #9);