     }
 
     SearchCommand(g_CurrentInput)
+
+    g_WaitCurrentCommand := False
 return
 
 SearchCommand(command = "", firstRun = false)



ProcessInputCommand:
    ControlGetText, g_CurrentInput, %g_InputArea%

    ; 如果使用异步的方式，TurnOnResultFilter 后会出问题，先绕一下

}

RunCurrentCommand:
    ; https://github.com/goreliu/runz/issues/40
    while (g_WaitCurrentCommand)
    {
        Sleep, 50
    }

    RunCommand(g_CurrentCommand)
return

