mirror of https://github.com/helix-editor/helix
Override crossterm's support for NO_COLOR. (#10514)
Since helix isn't usable without color support, honoring this does nobody any good.pull/10527/head
parent
94405f3d07
commit
18d5cacea6
|
@ -91,6 +91,10 @@ where
|
||||||
W: Write,
|
W: Write,
|
||||||
{
|
{
|
||||||
pub fn new(buffer: W, config: &EditorConfig) -> CrosstermBackend<W> {
|
pub fn new(buffer: W, config: &EditorConfig) -> CrosstermBackend<W> {
|
||||||
|
// helix is not usable without colors, but crossterm will disable
|
||||||
|
// them by default if NO_COLOR is set in the environment. Override
|
||||||
|
// this behaviour.
|
||||||
|
crossterm::style::force_color_output(true);
|
||||||
CrosstermBackend {
|
CrosstermBackend {
|
||||||
buffer,
|
buffer,
|
||||||
capabilities: Capabilities::from_env_or_default(config),
|
capabilities: Capabilities::from_env_or_default(config),
|
||||||
|
|
Loading…
Reference in New Issue