[Github-comments] [geany/geany] Push current position to navqueue before navigating back (#1537)

Vasiliy Faronov notifications at xxxxx
Sat Jul 15 15:38:54 UTC 2017


@codebrainz 

> This macro should probably be used in this PR, else navqueue won't work for files that aren't saved yet (or is this an existing bug?).

This is existing behavior. The navqueue uses the filename as a unique identifier of a document. (It doesn’t really need them right now, because it evicts a document from the navqueue once it is closed — so could use a `GeanyDocument *` — but the comments there mention fixing that as a to-do.)

> If you're unlucky, it will do anything else. What happens is completely undefined behaviour.

Fair enough. Coming from other languages I’m not really used to the concept of UB yet. (Does it *realistically* ever not crash though?..)

-- 
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/1537#issuecomment-315542239
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170715/0dc0389d/attachment.html>


More information about the Github-comments mailing list