workspace: change save prompt for unnamed buffers (#3037)

Release Notes:
- N/A
This commit is contained in:
Piotr Osiewicz 2023-09-26 19:35:10 +02:00 committed by GitHub
parent 8c47f117db
commit e263805847
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2213,7 +2213,7 @@ fn dirty_message_for(buffer_path: Option<ProjectPath>) -> String {
let path = buffer_path
.as_ref()
.and_then(|p| p.path.to_str())
.unwrap_or(&"Untitled buffer");
.unwrap_or(&"This buffer");
let path = truncate_and_remove_front(path, 80);
format!("{path} contains unsaved edits. Do you want to save it?")
}