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

global g_DisplayArea := "Edit3"
global g_CommandArea := "Edit4"

FileRead, currentPlugins, %A_ScriptDir%\Core\Plugins.ahk
needRestart := false


    }

    SearchCommand(g_CurrentInput)

    g_WaitCurrentCommand := False
return

SearchCommand(command = "", firstRun = false)
