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

SaveActions: Add configurable target directory for instantly saved files #2769

Merged
merged 6 commits into from Sep 19, 2021
2 changes: 1 addition & 1 deletion plugins/saveactions.c
Expand Up @@ -295,7 +295,7 @@ static void instantsave_document_new_cb(GObject *obj, GeanyDocument *doc, gpoint

doc->file_name = new_filename;

if (doc->file_type && doc->file_type->id == GEANY_FILETYPES_NONE)
if (ft != NULL && ft->id == GEANY_FILETYPES_NONE)
document_set_filetype(doc, filetypes_lookup_by_name(instantsave_default_ft));

/* force saving the file to enable all the related actions(tab name, filetype, etc.) */
Expand Down