[Github-comments] [geany/geany] When "go to line" is out of bounds, go to beginning or end of document (PR #2973)

xiota notifications at xxxxx
Sun Oct 31 06:20:35 UTC 2021


I changed `offset` to bool and kept the sign with `line_no` to see what it looks like.

* Calculating the destination line number is simplified.  No more multiplying by `offset` (which is confusing).
* `get_line_and_offset_from_text()` became a two-liner, so I removed it.

-- 
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/2973#issuecomment-955644203
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211030/37998c9e/attachment.htm>


More information about the Github-comments mailing list