aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/prompt/builtins.rs2
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
}