Diff of /src/callbacks.c [f0f3a6] .. [458f4f] Maximize Restore

  Switch to side-by-side view

--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -221,9 +221,8 @@
 {
 	GeanyDocument *doc = document_get_current();
 
-	g_return_if_fail(doc != NULL);
-
-	document_close(doc);
+	if (doc != NULL)
+		document_close(doc);
 }