Skip to content

Commit

Permalink
Added post-edit highlighter delay as an adjustable setting
Browse files Browse the repository at this point in the history
  • Loading branch information
G33kDude committed Aug 15, 2017
1 parent 56a6223 commit a525aaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CodeQuickTester.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/CQT.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down

0 comments on commit a525aaa

Please sign in to comment.