This commit is contained in:
Arthur Beck 2025-05-06 16:59:25 -05:00
parent 82fa923bff
commit d6d6df7298
2 changed files with 2 additions and 1 deletions

View file

@ -522,6 +522,7 @@ pub fn _while(args: Vec<String>, _: String, state: &mut super::State) -> i32 {
/// shh
pub fn gay(_: Vec<String>, _: String, state: &mut super::State) -> i32 {
state.in_mode = !state.in_mode;
state.entries = 0;
0
}

View file

@ -402,7 +402,7 @@ fn write_prompt(state: State) -> Result<(), Box<dyn std::error::Error>> {
"\x1b[36;1m",
"\x1b[35;1m",
];
let idx = state.entries.saturating_sub(1) % table.len();
let idx = state.entries % table.len();
prompt += table[idx];
}