Commit 4239d965 authored by Sebastian Ramacher's avatar Sebastian Ramacher
Browse files

just do nothing if no document is open

parent 8abe3d96
......@@ -307,7 +307,9 @@ sc_toggle_index(girara_session_t* session, girara_argument_t* UNUSED(argument),
g_return_val_if_fail(session != NULL, false);
g_return_val_if_fail(session-> != NULL, false);
zathura_t* zathura = session->;
g_return_val_if_fail(zathura->document != NULL, false);
if (zathura->document == NULL) {
return false;
girara_tree_node_t* document_index = NULL;
GtkWidget* treeview = NULL;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment