micro/internal
Dmitry Maluka 9ad4437a98
Fix some issues with default colors in colorschemes (#2225)
* Fix default colors for unconfigured syntax groups

When GetColor is called for a syntax group not specified in the
colorscheme, it should fallback not to the terminal's default colors
(tcell.DefaultColor) but to the colorscheme's defaults (DefStyle)
which may be different from tcell.DefaultColor.

For example, if we are using micro's default colorscheme in a terminal
which uses a black-on-white theme, then dots and commas in Go files
("symbol" syntax group in go.yaml) are displayed black on a dark
background, i.e. barely visible.

* Avoid using terminal's default colors directly

If a syntax group color is set to "default" (which we have for some
syntax groups in some colorschemes), it defaults to the terminal's
default colors (tcell.DefaultColor), which is fine for 16-color
colorschemes but not quite fine for truecolor and 256-color
colorschemes which should not depend on the terminal colors.
It should default to the colorscheme's default (DefStyle) instead.

For example, if we are using micro's default colorscheme in a terminal
which uses a black-on-white theme, then "bool" type in C files
("type.extended" syntax group in c.yaml) is displayed black on a dark
background, i.e. barely visible.
2021-09-28 13:30:29 -07:00
..
action Fix #1943: 'Duplicated line' message being wrong (#2219) 2021-09-24 14:39:58 -07:00
buffer Merge 2021-08-21 17:58:35 -04:00
clipboard Only use internal clipboard on error 2020-12-26 14:45:22 -05:00
config Fix some issues with default colors in colorschemes (#2225) 2021-09-28 13:30:29 -07:00
display More style improvements 2021-08-21 18:04:08 -04:00
info Clear prompt before callback 2020-11-16 14:07:22 -05:00
lua Make more libraries available (#1917) 2020-11-21 01:46:17 -05:00
screen Enable xterm automatically if screen init fails 2020-09-15 01:11:59 -04:00
shell Fix some quality issues (#1914) 2021-01-09 13:39:21 -05:00
util Improve comments 2021-08-21 17:58:30 -04:00
views Fix unsplit crash 2020-02-08 21:06:13 -05:00