I sometimes try to open a file from a terminal and pass the wrong path. Asking the user to confirm the new file solves this problem, they can easily press escape to cancel the new document.
Occasionally I might use a glob that turns out to be wrong too, creating many unwanted new documents. So I made cancelling a new document ignore any remaining new filenames passed to Geany.  You can view, comment on, or merge this pull request online at: https://github.com/geany/geany/pull/2369 -- Commit Summary -- * Ask whether to open new files from command-line * If new document cancelled, ignore remaining new filenames -- File Changes -- M src/libmain.c (24) -- Patch Links -- https://github.com/geany/geany/pull/2369.patch https://github.com/geany/geany/pull/2369.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/2369
