Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub fn colors_enabled() -> bool {
/// Returns `true` if true colors should be enabled for stdout.
#[inline]
pub fn true_colors_enabled() -> bool {
STDERR_TRUE_COLORS.load(Ordering::Relaxed)
STDOUT_TRUE_COLORS.load(Ordering::Relaxed)
}

/// Forces colorization on or off for stdout.
Expand Down Expand Up @@ -88,7 +88,7 @@ pub fn true_colors_enabled_stderr() -> bool {
/// Forces colorization on or off for stderr.
///
/// This overrides the default for the current process and changes the return value of the
/// `colors_enabled` function.
/// `colors_enabled_stderr` function.
#[inline]
pub fn set_colors_enabled_stderr(val: bool) {
STDERR_COLORS.store(val, Ordering::Relaxed)
Expand Down
2 changes: 1 addition & 1 deletion src/windows_term/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ fn read_key_event() -> io::Result<KEY_EVENT_RECORD> {
}

pub(crate) fn wants_emoji() -> bool {
// If WT_SESSION is set, we can assume we're running in the nne
// If WT_SESSION is set, we can assume we're running in the new
// Windows Terminal. The correct way to detect this is not available
// yet. See https://github.com/microsoft/terminal/issues/1040
env::var("WT_SESSION").is_ok()
Expand Down
Loading