提交 a440f54a 编写于 作者: J Jason Malinowski

Inline variable being used in just one place

上级 73674b38
......@@ -34,10 +34,8 @@ public CommandState GetCommandState(GoToDefinitionCommandArgs args, Func<Command
public void ExecuteCommand(GoToDefinitionCommandArgs args, Action nextHandler)
{
var textBuffer = args.SubjectBuffer;
var caretPos = args.TextView.GetCaretPoint(args.SubjectBuffer);
if (caretPos.HasValue && TryExecuteCommand(textBuffer.CurrentSnapshot, caretPos.Value))
if (caretPos.HasValue && TryExecuteCommand(args.SubjectBuffer.CurrentSnapshot, caretPos.Value))
{
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册