Skip to content

Commit

Permalink
Remove unintended output from Out-CurrentFile
Browse files Browse the repository at this point in the history
PowerShell#869 forgot to assign a returned editorcontext,
causing new output from the command. Assigning to null.
  • Loading branch information
fflaten committed Feb 20, 2023
1 parent adba47d commit 8e4d140
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function Out-CurrentFile {

try {
# If there is no file open
$psEditor.GetEditorContext()
$null = $psEditor.GetEditorContext()
}
catch {
# create a new one
Expand Down

0 comments on commit 8e4d140

Please sign in to comment.