From bed18638c0a07021acd8877d3b57cf960cf3b1eb Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 25 Feb 2024 19:03:26 +0000 Subject: [PATCH] fix: Using Substring to get wall characters ( Fixes #364, Fixes #369, Fixes #370 ) --- Posh.types.ps1xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index e3f28b4..50d5a5d 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1675,7 +1675,7 @@ if ($theLine.Length -lt 5) { } } else { # Otherwise, pick one left of the middle in the line - $theLine[[Math]::Floor($theLine.Length / 2) - 1] + $theLine.Substring(([Math]::Floor($theLine.Length / 2) - 1), 1) } @@ -1727,7 +1727,7 @@ if ($theseLines.Length -eq 1 -and $theseLines[0].Length -lt 5) { $theseLines[0].Substring(0,1) } else { $theLine = $theseLines[[Math]::Floor($theseLines.Length/2)] - $theLine[[Math]::Floor($theLine.Length / 2)] + $theLine.Substring(([Math]::Floor($theLine.Length / 2)), 1) } @@ -1896,7 +1896,7 @@ if ($theLine.Length -lt 5) { } } else { # Otherwise, pick one left of the middle in the line - $theLine[[Math]::Floor($theLine.Length / 2) - 1] + $theLine.Substring(([Math]::Floor($theLine.Length / 2) - 1), 1) }