private void RunCommand(string command) { if (command.StartsWith(":")) { command = command.Substring(1); } var lineCommand = VimUtil.ParseLineCommand(command); _interpreter.RunLineCommand(lineCommand); }
private void RunCommand(string command) { if (command.StartsWith(":")) { command = command.Substring(1); } var parseResult = VimUtil.ParseLineCommand(command); Assert.True(parseResult.IsSucceeded); _interpreter.RunLineCommand(parseResult.AsSucceeded().Item); }