mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
Global: enables debug mode when $FF_DEBUG is set
in case of `debugMode` is accessed before `--debug` is parsed
This commit is contained in:
@@ -843,7 +843,7 @@ void ffOptionsInitDisplay(FFOptionsDisplay* options)
|
||||
options->disableLinewrap = !options->pipe;
|
||||
#else
|
||||
options->disableLinewrap = false;
|
||||
options->debugMode = false;
|
||||
options->debugMode = !!getenv("FF_DEBUG");
|
||||
#endif
|
||||
|
||||
options->durationSpaceBeforeUnit = FF_SPACE_BEFORE_UNIT_DEFAULT;
|
||||
|
||||
Reference in New Issue
Block a user