Commit Graph
4 Commits
Author SHA1 Message Date
Max Nordlund gmail b69aa396c1 Remove trailing whitespace 2019-02-21 11:59:04 +01:00
Max Nordlund gmail 61ca196d73 Move formatting of branch name into get_head
This allows for advanced customization where the shortening of the
branch name is up to the caller, unlike before.

This change is observable from the outside, and as such can be
dangerous. But AFAIK it does not change the default behavior.
2019-02-21 11:59:04 +01:00
Max Nordlund gmail 5f769dbed9 Expose get_hunks for advanced customization 2019-02-21 11:59:04 +01:00
Max Nordlund gmail 45ff435378 Honor minwidth for hunks and branch parts
This removes the hardcoded minwidth limits for both the `hunks` and
`branch` parts. It replaces these with safe accesses to the `minwidth`
setting as done by `airline#parts#define_minwidth`.
2019-02-20 12:36:40 +01:00