[Geany-devel] [PATCH] FIx document_need_save_as() logic

Nick Treleaven nick.treleaven at xxxxx
Thu Sep 9 17:33:42 UTC 2010


On Thu, 9 Sep 2010 19:57:07 +1000
Erik de Castro Lopo <mle+tools at mega-nerd.com> wrote:

> > Had a minor niggle which i decided to fix. If I do:
> > 
> >     geany some_file_which_doesn't_exist
> > 
> > geany will open a new tab with the right file name for the tab. If
> > I then add some code/text and try to save the file, geany currently
> > throws up a SaveAs dialog box even though it was already given a
> > filename earlier.
> > 
> > The attached patch fixes this (tested on Linux) by changing the
> > needs_save_as logic to ignore doc->real_path and only check
> > doc->file_name.
> 
> Any decision on whether this patch is going to be applied?

I did some research into why real_path was checked - it's for file
templates so the user can choose a filename.

I committed a change so an absolute path is necessary to avoid
prompting the user - so your command-line new file should now work as
expected.

Regards,
Nick



More information about the Devel mailing list