Skip to content

Commit

Permalink
Show calc result if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
goreliu committed Apr 24, 2016
1 parent 89cdd86 commit 64c5e14
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions RunZ.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,12 @@ SearchCommand(command = "", firstRun = false)

if (result == "")
{
if (IsLabel("Calc") && Eval(g_CurrentInput) != 0)
{
DisplayResult(Eval(g_CurrentInput))
return
}

g_UseFallbackCommands := true
g_CurrentCommand := g_FallbackCommands[1]
g_CurrentCommandList := g_FallbackCommands
Expand Down

0 comments on commit 64c5e14

Please sign in to comment.