Warn user if current filetype might not support color schemes
commit563249f7c6659ea2c6436f38af5977da4c5723c9
authorNick Treleaven <nick.treleaven@btinternet.com>
Tue, 29 May 2012 16:59:37 +0000 (29 17:59 +0100)
committerNick Treleaven <nick.treleaven@btinternet.com>
Tue, 29 May 2012 17:05:56 +0000 (29 18:05 +0100)
treefc5b323e9b6bcbb6296484ac06dbfc975d7aebd5
parent12a1295dd1a0e769951b7d7a2ee89f90c4e869a5
Warn user if current filetype might not support color schemes

If the 'default' style isn't set to a named style, then probably the
filetype styles have been overridden with manual colors and may not
work properly with color schemes.

Note: HTML-based filetypes won't show a warning because they don't
have a 'default' style (they use 'html_default' instead).

This is a simple heuristic, but is worth having to avoid some
spurious bug reports when using the color schemes dialog.
src/filetypesprivate.h
src/highlighting.c