mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-01-09 13:02:19 +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