From 62475f9bcf06cfba1302ce4f55129adb33df24c2 Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Sun, 2 Mar 2014 11:38:13 +0800 Subject: [PATCH] Fix issue#26 "not count execute error command in history will be better" --- Wox.Plugin.System/CMD.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Wox.Plugin.System/CMD.cs b/Wox.Plugin.System/CMD.cs index 699199247..59f0ea331 100644 --- a/Wox.Plugin.System/CMD.cs +++ b/Wox.Plugin.System/CMD.cs @@ -29,7 +29,6 @@ namespace Wox.Plugin.System Action = (c) => { ExecuteCmd(m.Key); - AddCmdHistory(m.Key); return true; } }).Take(5); @@ -49,7 +48,6 @@ namespace Wox.Plugin.System Action = (c) => { ExecuteCmd(cmd); - AddCmdHistory(cmd); return true; } }; @@ -65,7 +63,6 @@ namespace Wox.Plugin.System Action = (c) => { ExecuteCmd(m.Key); - AddCmdHistory(m.Key); return true; } }).Take(4); @@ -81,6 +78,7 @@ namespace Wox.Plugin.System try { WindowsShellRun.Start(cmd); + AddCmdHistory(cmd); } catch (Exception e) {