Skip to content

Commit

Permalink
Fix TurnOnResultFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
goreliu committed Apr 29, 2016
1 parent 8f75b52 commit 9b9f399
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion RunZ.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,13 @@ return
ProcessInputCommand:
ControlGetText, g_CurrentInput, %g_InputArea%

; 如果使用异步的方式,TurnOnResultFilter 后会出问题,先绕一下
if (SubStr(g_CurrentInput, 0, 1) == " ")
{
GoSub, ProcessInputCommandCallBack
return
}

; 为了避免搜索时间过长导致不再调用 ProcessInputCommand
; 不清楚这样做是否有其他问题
SetTimer, ProcessInputCommandCallBack, 0
Expand Down Expand Up @@ -1017,7 +1024,7 @@ FilterResult(text, needle)
{
result .= A_LoopField "`n"
}
else if (MatchResult(StrReplace(SubStr(A_LoopField, 10), "\", " "), needle))
else if (MatchResult(StrReplace(SubStr(A_LoopField, 5), "\", " "), needle))
{
result .= A_LoopField "`n"
}
Expand Down

0 comments on commit 9b9f399

Please sign in to comment.