diff options
| author | Fuwn <[email protected]> | 2021-05-06 21:36:45 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-06 21:36:45 -0700 |
| commit | 4e872ab5edc445145fc30d36bdd3cdb1780102b6 (patch) | |
| tree | 5872cc7d0c6dd548fc2747997a30d9ca4915aa3b | |
| parent | refactor(config): verbosity (diff) | |
| download | whirl-4e872ab5edc445145fc30d36bdd3cdb1780102b6.tar.xz whirl-4e872ab5edc445145fc30d36bdd3cdb1780102b6.zip | |
feat(prompt): zero-index history builtin output for accuracy
| -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 } |