diff options
| author | Fuwn <[email protected]> | 2021-05-06 21:36:45 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-06 21:36:45 +0000 |
| commit | 977c1bec8d4cabd786cbe49fc7d781fdc3adcbb1 (patch) | |
| tree | a080dab1cf999d54310c0db76b3fc469c0c859ad /src | |
| parent | refactor(config): verbosity (diff) | |
| download | whirl-977c1bec8d4cabd786cbe49fc7d781fdc3adcbb1.tar.xz whirl-977c1bec8d4cabd786cbe49fc7d781fdc3adcbb1.zip | |
feat(prompt): zero-index history builtin output for accuracy
Diffstat (limited to 'src')
| -rw-r--r-- | src/prompt/builtins.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prompt/builtins.rs b/src/prompt/builtins.rs index 1c8389f..6b5da7b 100644 --- a/src/prompt/builtins.rs +++ b/src/prompt/builtins.rs @@ -33,8 +33,8 @@ pub fn builtin_echo(args: &[String]) -> i32 { pub fn builtin_history(history: Vec<String>) -> i32 { let mut index = 0; for cmd in &history { - index += 1; println!("{} {}", index, cmd.trim()); + index += 1; } 0 } |