Note: `real_path` gets set for any documents on disk.
Don't add new document opened from CLI to recent files, because it doesn't exist yet. It may be closed unsaved. No need now to add recent file on Save As, because real_path is nulled before calling document_save_file, so that function will add the recent file. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/3389
-- Commit Summary --
* Add recent filename on saving when real_path is not set
-- File Changes --
M src/document.c (4) M src/libmain.c (2)
-- Patch Links --
https://github.com/geany/geany/pull/3389.patch https://github.com/geany/geany/pull/3389.diff
I agree with the changes. Adding newly opened, unsaved files to recent files does not make much sense.
If nobody objects, I'd merge it in a few days.
LGBI
Merged #3389 into master.
github-comments@lists.geany.org