diff --git a/src/test/mod.rs b/src/test/mod.rs index 365fe91a8b..b4046d0a2f 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -56,7 +56,7 @@ fn complete_line() { let keys = vec![KeyPress::Enter]; let mut rdr: IntoIter = keys.into_iter(); let cmd = super::complete_line(&mut rdr, &mut s, &mut input_state, &Config::default()).unwrap(); - assert_eq!(Some(Cmd::AcceptLine), cmd); + assert_eq!(Some(Cmd::AcceptOrInsertLine { accept_in_the_middle: true }), cmd); assert_eq!("rust", s.line.as_str()); assert_eq!(4, s.line.pos()); }