mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2026-08-24 10:14:12 -05:00
fix(pwsh): disable transient prompt for ConstrainedLanguage mode
This commit is contained in:
committed by
Jan De Dobbeleer
parent
3057e474d7
commit
7ebfc530fe
@@ -117,7 +117,7 @@ New-Module -Name "oh-my-posh-core" -ScriptBlock {
|
||||
}
|
||||
}
|
||||
|
||||
if ("::TRANSIENT::" -eq "true") {
|
||||
if (("::TRANSIENT::" -eq "true") -and ($ExecutionContext.SessionState.LanguageMode -ne "ConstrainedLanguage")) {
|
||||
Set-PSReadLineKeyHandler -Key Enter -BriefDescription 'OhMyPoshEnterKeyHandler' -ScriptBlock {
|
||||
$previousOutputEncoding = [Console]::OutputEncoding
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user