From a525aaae0eee73b696c3267535a4ed2917559f02 Mon Sep 17 00:00:00 2001 From: G33kDude Date: Tue, 15 Aug 2017 19:04:30 -0400 Subject: [PATCH] Added post-edit highlighter delay as an adjustable setting --- CodeQuickTester.ahk | 1 + lib/CQT.ahk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CodeQuickTester.ahk b/CodeQuickTester.ahk index 28cc3db..fc24a79 100644 --- a/CodeQuickTester.ahk +++ b/CodeQuickTester.ahk @@ -35,6 +35,7 @@ Settings := ; Highlighter (colors are 0xRRGGBB) "UseHighlighter": True, + "HighlightDelay": 200, ; Delay until the user is finished typing "Colors": [ 0x7F9F7F, ; Comments 0x7F9F7F, ; Multiline comments diff --git a/lib/CQT.ahk b/lib/CQT.ahk index 23fbb4c..bffab75 100644 --- a/lib/CQT.ahk +++ b/lib/CQT.ahk @@ -238,7 +238,7 @@ class CodeQuickTester if (GuiEvent == "Normal" && EventInfo == 0x300) ; EN_CHANGE { ; Delay until the user is finished changing the document - SetTimer(this.Bound.Highlight, -200) + SetTimer(this.Bound.Highlight, -Abs(this.Settings.HighlightDelay)) } }