hehe
This commit is contained in:
parent
82fa923bff
commit
d6d6df7298
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue