dbordak / telephone-line

A new implementation of Powerline for Emacs
GNU General Public License v3.0
560 stars 49 forks source link

Provide TUI fallback for all separators #111

Closed gagbo closed 4 years ago

gagbo commented 4 years ago

The fallback mechanism for TUI uses :alt-separator, but most of the provided separators lack the attribute. That meant that no mode-line at all was displayed in TUI since the mode-line formatting errored about the missing slot.

This allows the modeline to still be displayed in TUI if one of the package provided separators is used.

I just used the same alt-separator everywhere, since my main goal was just to make it work. Having esthetically related alt-separators can come in another PR.

dbordak commented 4 years ago

This is probably a good-enough solution for now, but I had resisted doing this because I wanted the alt-separators to actually match up to the separators in some fashion. Rather, I should probably not be doing this inside the objects themselves but providing a fallback option as a separate customization.