public void Execute(EditorCommand command) { _logger.Debug($"Start execution of the editor command ({command.Content})"); try { NativeCommander.GetExecutingFunction(new NativeCommand(":write " + command.Content.Trim()))(); } catch (Exception error) { ErrorHandler.ShowError(error); } }
public void Execute(NativeCommand command) { _logger.Debug($"Start execution of the native command ({command.Content})"); try { NativeCommander.GetExecutingFunction(command)(); } catch (Exception error) when(error.GetType() != typeof(InterruptedExecutionException)) { ErrorHandler.ShowError(error); } }