Skip to content

Commit

Permalink
fix: Using Substring to get wall characters ( Fixes #364, Fixes #369, F…
Browse files Browse the repository at this point in the history
…ixes #370 )
  • Loading branch information
StartAutomating authored and StartAutomating committed Feb 25, 2024
1 parent 19fb276 commit bed1863
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Posh.types.ps1xml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
</GetScriptBlock>
</ScriptProperty>
Expand Down Expand Up @@ -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)
}


Expand Down Expand Up @@ -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)
}
</GetScriptBlock>
</ScriptProperty>
Expand Down

0 comments on commit bed1863

Please sign in to comment.