mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
parent
3f1eb821f0
commit
c78aa60455
|
@ -417,6 +417,13 @@ Example:
|
||||||
$terminalWidth = 0
|
$terminalWidth = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# in some cases we have an empty $script:NoExitCode
|
||||||
|
# this is a workaround to make sure we always have a value
|
||||||
|
# see https://github.com/JanDeDobbeleer/oh-my-posh/issues/4128
|
||||||
|
if ($null -eq $script:NoExitCode) {
|
||||||
|
$script:NoExitCode = $true
|
||||||
|
}
|
||||||
|
|
||||||
# set the cursor positions, they are zero based so align with other platforms
|
# set the cursor positions, they are zero based so align with other platforms
|
||||||
$env:POSH_CURSOR_LINE = $Host.UI.RawUI.CursorPosition.Y + 1
|
$env:POSH_CURSOR_LINE = $Host.UI.RawUI.CursorPosition.Y + 1
|
||||||
$env:POSH_CURSOR_COLUMN = $Host.UI.RawUI.CursorPosition.X + 1
|
$env:POSH_CURSOR_COLUMN = $Host.UI.RawUI.CursorPosition.X + 1
|
||||||
|
|
Loading…
Reference in a new issue