We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e334941 commit 809e320Copy full SHA for 809e320
src/main.rs
@@ -171,7 +171,7 @@ fn run_shell(vm: &mut VirtualMachine) -> PyResult {
171
debug!("You entered {:?}", input);
172
if shell_exec(vm, &input, vars.clone()) {
173
// Line was complete.
174
- rl.add_history_entry(input.as_ref());
+ rl.add_history_entry(input.trim_right().as_ref());
175
input = String::new();
176
} else {
177
loop {
@@ -184,7 +184,7 @@ fn run_shell(vm: &mut VirtualMachine) -> PyResult {
184
Ok(line) => {
185
if line.len() == 0 {
186
187
188
189
break;
190
}
0 commit comments