Skip to content

Commit

Permalink
fix: cannot disable hints during Zsh completion (#2559)
Browse files Browse the repository at this point in the history
  • Loading branch information
roele committed Sep 11, 2024
1 parent b16d158 commit 0830c06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/plugins/core/test_python_precompiled
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash

export MISE_PYTHON_COMPILE=0
assert_contains "mise use python@3.12.3 2>&1" "precompiled"
assert_contains "mise use python@3.12.3 2>&1" "cpython-"
assert_contains "mise x -- python --version" "Python 3.12.3"
2 changes: 1 addition & 1 deletion src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ macro_rules! hint {
.disable_hints
.iter()
.any(|hint| hint == $arg1 || hint == "*")
|| !console::user_attended()
&& console::user_attended()
{
let prefix = console::style("mise ").dim().for_stderr().to_string();
let prefix = prefix
Expand Down

0 comments on commit 0830c06

Please sign in to comment.