This seems like a perfectly reasonable feature request and would be super trivial to implement:
```c if (doc->file_name == NULL && sci_get_length(doc->editor->sci) == 0) { // don't prompt to save, just close } ``` I bump into this all the time, although it's not a major annoyance, I've got into the habit of working around by undoing the few changes until the "untitled" tab goes back to black and then I can close without the nagging.
Re-opening issue since no reason for closing was given and @b4n seems to be talking about a "saved"/disk document as opposed to an "untitled" document.