Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notebook menu: Add submenu to close all documents in/not in current folder #2346

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/notebook.c
Expand Up @@ -464,7 +464,7 @@ static void close_folder_action(GeanyDocument *cur_doc, gboolean other_folders)
if (!cur_doc->real_path)
return;

gchar *dir = g_dirname(cur_doc->real_path);
gchar *dir = g_path_get_dirname(cur_doc->real_path);

for (gint i = 0; i < gtk_notebook_get_n_pages(GTK_NOTEBOOK(main_widgets.notebook)); i++)
{
Expand Down