forked from Lokaltog/vim-powerline
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit introduces the following changes to themes and segment rendering: - Spacer segments are now regular string/function type segments with "width": "auto" in the themes. - The "rjust"/"ljust" properties have been replaced by the "width" option combined with a new "align" option. - Renderer._render_segments() is now a generator which renders each segment separately, and assigns the rendered contents to "_rendered_hl" and "_rendered_raw" in the segment dict. - Renderer.render() returns the segments by joining the "_rendered_hl" values for each segment. - Spacer segment widths are calculated in the render() method, and assigned to "_space_left" and "_space_right" in the segment dict. These spaces are then applied in Renderer._render_segments(). - All space characters are converted to no-break spaces (U+00A0) in the "_rendered_hl" property. Refs Lokaltog#113. Refs #154.
- Loading branch information
Showing
8 changed files
with
108 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters