Skip to content

Commit 8e4d140

Browse files
committed
Remove unintended output from Out-CurrentFile
PowerShell#869 forgot to assign a returned editorcontext, causing new output from the command. Assigning to null.
1 parent adba47d commit 8e4d140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/PowerShellEditorServices/Commands/Public/Out-CurrentFile.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function Out-CurrentFile {
2626

2727
try {
2828
# If there is no file open
29-
$psEditor.GetEditorContext()
29+
$null = $psEditor.GetEditorContext()
3030
}
3131
catch {
3232
# create a new one

0 commit comments

Comments
 (0)