mirror of
https://github.com/powerline/powerline.git
synced 2025-04-08 19:25:04 +02:00
The Segment class has been given two new properties: priority and filler. The render method has been given a width argument. If the width argument is specified when rendering a segment and the rendered segments are too wide, segments are dropped in order of priority, with the lowest priority (highest number) being dropped first and any segment with priority < 0 is kept, regardless of the specified width. If the width argument is specified along with one or more filler segments, the filler segments will pad the remaining space with space characters until the desired width has been reached. The handling of segment attributes has also been improved by lazily looking up the correct attributes in the segment tree when it's being rendered. Finally, the rendering code itself has been improved a bit with less code duplication and much more readable code.
The file is empty.
Languages
Python
90.7%
Shell
7.1%
Vim Script
1.8%
C
0.4%