Skip to content

Commit

Permalink
Fix issue#26 "not count execute error command in history will be better"
Browse files Browse the repository at this point in the history
  • Loading branch information
qianlifeng committed Mar 2, 2014
1 parent 674d638 commit 62475f9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Wox.Plugin.System/CMD.cs
Expand Up @@ -29,7 +29,6 @@ protected override List<Result> QueryInternal(Query query)
Action = (c) =>
{
ExecuteCmd(m.Key);
AddCmdHistory(m.Key);
return true;
}
}).Take(5);
Expand All @@ -49,7 +48,6 @@ protected override List<Result> QueryInternal(Query query)
Action = (c) =>
{
ExecuteCmd(cmd);
AddCmdHistory(cmd);
return true;
}
};
Expand All @@ -65,7 +63,6 @@ protected override List<Result> QueryInternal(Query query)
Action = (c) =>
{
ExecuteCmd(m.Key);
AddCmdHistory(m.Key);
return true;
}
}).Take(4);
Expand All @@ -81,6 +78,7 @@ private void ExecuteCmd(string cmd)
try
{
WindowsShellRun.Start(cmd);
AddCmdHistory(cmd);
}
catch (Exception e)
{
Expand Down

0 comments on commit 62475f9

Please sign in to comment.