We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87ea71d commit 856821fCopy full SHA for 856821f
Jump.Location/JumpLocationCommand.cs
@@ -74,14 +74,13 @@ protected override void ProcessRecord()
74
var best = Controller.FindBest(Query);
75
if (best == null) throw new LocationNotFoundException(Query.First());
76
77
- var fullPath = GetResultPath(best);
78
- ChangeDirectory(fullPath);
+ ChangeDirectory(best.Path);
79
}
80
81
private void ChangeDirectory(string fullPath)
82
{
83
var verb = Push ? "Push" : "Set";
84
- InvokeCommand.InvokeScript(string.Format("{1}-Location \"{0}\"", fullPath, verb));
+ InvokeCommand.InvokeScript(string.Format("{1}-Location '{0}'", fullPath.Trim(), verb));
85
86
87
0 commit comments