Preserve buffer identity when underlying entry temporarily disappears

This commit is contained in:
Antonio Scandurra 2022-10-13 09:10:10 +02:00
parent 0a1aea6cb8
commit f28cc5ca0c
4 changed files with 26 additions and 14 deletions

View file

@ -2457,6 +2457,7 @@ async fn test_buffer_is_dirty(cx: &mut gpui::TestAppContext) {
.await
.unwrap();
cx.foreground().run_until_parked();
buffer2.read_with(cx, |buffer, _| assert!(buffer.is_dirty()));
assert_eq!(
*events.borrow(),
&[