mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-25 05:11:06 +08:00
the highlighter code tries to convert the RGB colors into appropriate color codes for the MSDOS palette. Unfortunately, it does not consider color names and tries to split those into a list of 3 RGB codes. This failes for names shorter 6 characters, causing a list index out of bounds error. Fix this by making sure, that the color code should start with '#' and in case it does not, assume it is a color name and simple return the name in that case. closes #2350