Browse Source

Fix 522117b7d03dbc4901d094fe52c5e570220b9ea4

Martijn Laan 7 years ago
parent
commit
cdc65cd3b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Components/ScintStylerInnoSetup.pas

+ 1 - 1
Components/ScintStylerInnoSetup.pas

@@ -555,7 +555,7 @@ end;
 
 procedure TInnoSetupStyler.ApplyPendingSquigglyFromToIndex(const StartIndex, EndIndex: Integer);
 begin
-  if (CaretIndex >= StartIndex) and (CaretIndex <= EndIndex) then
+  if (CaretIndex >= StartIndex) and (CaretIndex <= EndIndex + 1) then
     ApplyIndicators([inPendingSquiggly], StartIndex, EndIndex)
   else
     ApplyIndicators([inSquiggly], StartIndex, EndIndex);