fix: delay shell command indicator to avoid flashes
This commit is contained in:
@@ -20,8 +20,10 @@ fn shell_commands_leave_editing_live_and_present_both_streams_and_exit_status()
|
||||
session.handle(Input::Enter);
|
||||
let fixed = Instant::now();
|
||||
session.shell.as_mut().unwrap().2 = fixed;
|
||||
assert!(session.poll_shell_at(fixed + Duration::from_millis(100)));
|
||||
assert_eq!(session.editor.shell_label(), "whi... /");
|
||||
assert!(!session.poll_shell_at(fixed + Duration::from_millis(199)));
|
||||
assert_eq!(session.editor.shell_label(), "");
|
||||
assert!(session.poll_shell_at(fixed + Duration::from_millis(200)));
|
||||
assert_eq!(session.editor.shell_label(), "whi... -");
|
||||
session.execute("!printf should-not-run > unexpected");
|
||||
assert_eq!(
|
||||
session.editor.message(),
|
||||
|
||||
Reference in New Issue
Block a user