@ntrel commented on this pull request.


In src/document.c:

> @@ -628,7 +628,9 @@ static GeanyDocument *document_create(const gchar *utf8_filename)
 	{
 		doc = document_get_current();
 		/* remove the empty document first */
-		if (doc != NULL && doc->file_name == NULL && ! doc->changed)
+		if (doc != NULL && doc->file_name == NULL && ! doc->changed &&
+			// check save as dialog isn't running
+			gtk_window_is_active(GTK_WINDOW(main_widgets.window)))

Unfortunately this is false when the window doesn't have focus, so it won't close the empty document any more when using a terminal window to open a file.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/pull/3415/review/1314654764@github.com>