Hi guys,
I've noticed that if I save an untitled buffer, I am not automatically
prompted to save the file in the current directory (which is a
reasonable expectation).
Here's a patch: in SciTEGTK.cxx, at line 1193 in SaveAsXXX(), there is
code which checks whether the file to be saved has an extension:
if (ext) {
... (case where we have an extension handled correctly)
} else { // oops, this assumes that we want to save a _file_ with no extension!
gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dlg),
savePath.AsInternal());
}
This gtk_file_chooser_set_filename() line should be replaced with:
if (savePath.IsUntitled()) { // saving 'untitled'
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dlg),
savePath.Directory().AsInternal());
} else {
gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dlg), savePath.AsInternal());
}
This accounts for the untitled case - the path ends with '/'
steve d.
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest