fix: delay shell command indicator to avoid flashes

This commit is contained in:
2026-10-18 01:19:07 +02:00
parent a5f92452b3
commit 00207b5526
3 changed files with 10 additions and 5 deletions
+4 -2
View File
@@ -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(),