mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2026-08-24 10:14:12 -05:00
fix(pwsh): keep tooltip restore redraw in UTF-8
Fixes #7776 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
committed by
Jan De Dobbeleer
co-authored by
Copilot App
parent
168ae17860
commit
3d7cc27823
@@ -1116,13 +1116,13 @@ New-Module -Name "oh-my-posh-core" -ScriptBlock {
|
||||
$previousOutputEncoding = [Console]::OutputEncoding
|
||||
try {
|
||||
[Console]::OutputEncoding = [Text.Encoding]::UTF8
|
||||
[Microsoft.PowerShell.PSConsoleReadLine]::InvokePrompt()
|
||||
}
|
||||
catch [System.ArgumentOutOfRangeException] {
|
||||
}
|
||||
finally {
|
||||
[Console]::OutputEncoding = $previousOutputEncoding
|
||||
}
|
||||
[Microsoft.PowerShell.PSConsoleReadLine]::InvokePrompt()
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user