mirror of https://gitlab.com/basile.b/dexed.git
fix possible wrong line index when lefttoken on LF is on another line
This commit is contained in:
parent
b140ac1c84
commit
7d372c1eba
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue