@LiquidCake commented on this pull request.
- if (! geany_is_closing_all_documents() && doc->real_path != NULL && is_persistent_untitled_doc_file(doc->file_name))
+ { + gchar *short_filename = document_get_basename_for_display(doc, -1); + + if (! document_is_empty(doc)) + { + show_unsaved_dialog_for_persistent_untitled_docs_tab_closing( + doc, + short_filename + ); + } + else + { + g_remove(doc->real_path); + + ui_set_statusbar(TRUE, _("Empty untitled document file %s was deleted"), short_filename);
done