mirror of https://gitlab.com/basile.b/dexed.git
fix #326 - Detection of indent mode is broken
This commit is contained in:
parent
76847765fb
commit
d73a3fc37a
|
@ -3102,6 +3102,7 @@ begin
|
||||||
fCacheLoaded := true;
|
fCacheLoaded := true;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
tryToPatchMixedIndentation();
|
||||||
subjDocChanged(TCEMultiDocSubject(fMultiDocSubject), self);
|
subjDocChanged(TCEMultiDocSubject(fMultiDocSubject), self);
|
||||||
fCanDscan := true;
|
fCanDscan := true;
|
||||||
end;
|
end;
|
||||||
|
@ -3573,7 +3574,7 @@ end;
|
||||||
|
|
||||||
procedure TCESynMemo.tryToPatchMixedIndentation;
|
procedure TCESynMemo.tryToPatchMixedIndentation;
|
||||||
begin
|
begin
|
||||||
if fLifeTimeManager.isNotNil and not fIdentDialShown and
|
if fLifeTimeManager.isNotNil and not fIdentDialShown and (lines.Count <> 0) and
|
||||||
((fLifeTimeManager as ICELifetimeManager).getLifetimeStatus = lfsLoaded)
|
((fLifeTimeManager as ICELifetimeManager).getLifetimeStatus = lfsLoaded)
|
||||||
then
|
then
|
||||||
begin
|
begin
|
||||||
|
|
Loading…
Reference in New Issue