This commit is contained in:
Artem Werner 2018-06-04 12:11:29 +02:00
parent 7c0a347208
commit 46bdd453bf

View file

@ -64,7 +64,7 @@ def build_stats():
return stats, branch
def limit_barnch(powerline, branch):
def limit_branch(powerline, branch):
max_lenght = powerline.segment_conf("git", "max_lenght", None)
return branch[:max_lenght]
@ -88,5 +88,5 @@ class Segment(ThreadedSegment):
else:
symbol = ""
self.powerline.append(" " + symbol + limit_barnch(self.powerline, self.branch) + " ", fg, bg)
self.powerline.append(" " + symbol + limit_branch(self.powerline, self.branch) + " ", fg, bg)
self.stats.add_to_powerline(self.powerline)