Skip to content

Commit

Permalink
Merge pull request #723 from dahlbyk/rkeithhill/tweak-layout-of-befor…
Browse files Browse the repository at this point in the history
…e-index

Always display BeforeIndex text for  PowerLine style prompts
  • Loading branch information
rkeithhill authored Nov 30, 2019
2 parents bac9b9f + b91e8da commit b0cbffb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GitPrompt.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,9 @@ function Write-GitStatus {
$sb | Write-GitBranchName $Status -NoLeadingSpace > $null
$sb | Write-GitBranchStatus $Status > $null

$sb | Write-Prompt $s.BeforeIndex > $null

if ($s.EnableFileStatus -and $Status.HasIndex) {
$sb | Write-Prompt $s.BeforeIndex > $null
$sb | Write-GitIndexStatus $Status > $null

if ($Status.HasWorking) {
Expand Down

0 comments on commit b0cbffb

Please sign in to comment.