repl: Make output buffer be readonly, never dirty (#17121)

This commit is contained in:
Kyle Kelley
2024-08-29 18:22:28 -07:00
committed by GitHub
parent 6646b15f29
commit 02cd5128c7
5 changed files with 37 additions and 11 deletions
+7 -1
View File
@@ -844,7 +844,13 @@ impl Item for Editor {
.unwrap_or_default(),
)
.map(|path| path.to_string_lossy().to_string())
.unwrap_or_else(|| "untitled".to_string())
.unwrap_or_else(|| {
if multibuffer.is_singleton() {
multibuffer.title(cx).to_string()
} else {
"untitled".to_string()
}
})
});
let settings = ThemeSettings::get_global(cx);