瀏覽代碼

Fix 522117b7d03dbc4901d094fe52c5e570220b9ea4

Martijn Laan 7 年之前
父節點
當前提交
cdc65cd3b2
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);