Skip to content

Commit

Permalink
Fixed a minor bug in the truncation functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Oct 18, 2017
1 parent 87f784d commit 86e67af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powerline.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (p *powerline) draw() string {

shellActualLength -= segment.width

segment.content = runewidth.Truncate(segment.content, *p.args.TruncateSegmentWidth-runewidth.StringWidth(segment.separator)-5, "")
segment.content = runewidth.Truncate(segment.content, *p.args.TruncateSegmentWidth-runewidth.StringWidth(segment.separator)-3, "")
segment.width = segment.computeWidth()

p.Segments = append(append(p.Segments[:minPriorityNotTruncatedSegmentId], segment), p.Segments[minPriorityNotTruncatedSegmentId+1:]...)
Expand Down

0 comments on commit 86e67af

Please sign in to comment.