Skip to content

Commit

Permalink
Merge pull request #468 from vladimir-poleh/master
Browse files Browse the repository at this point in the history
Fix 'Write-Prompt' to be able use Black as foreground color.
  • Loading branch information
dahlbyk committed Apr 18, 2017
2 parents 0e716af + d2c2a43 commit 3de3670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GitPrompt.ps1
Expand Up @@ -132,7 +132,7 @@ if (Get-Module NuGet) {

function Write-Prompt($Object, $ForegroundColor = $null, $BackgroundColor = $null) {
$s = $global:GitPromptSettings
if ($s -and !$ForegroundColor) {
if ($s -and ($null -eq $ForegroundColor)) {
$ForegroundColor = $s.DefaultForegroundColor
}

Expand Down

0 comments on commit 3de3670

Please sign in to comment.