mirror of
https://codeberg.org/cage/tinmop/
synced 2025-02-17 08:10:36 +01:00
- prevented crash when the tour indices exceeds the number of links in a page.
This commit is contained in:
parent
651b5fe963
commit
456602f89c
@ -2350,8 +2350,10 @@ gemini://gemini.circumlunar.space/docs/companion/subscription.gmi
|
||||
(if (tour-mode-parser:range-p index)
|
||||
(let ((from (tour-mode-parser:range-from index))
|
||||
(to (tour-mode-parser:range-to index)))
|
||||
(loop for i from (min from to) to (max from to) do
|
||||
(pushnew i all-indices :test #'=)))
|
||||
(loop for i from (min from to) to (max from to)
|
||||
when (< i (length links))
|
||||
do
|
||||
(pushnew i all-indices :test #'=)))
|
||||
(pushnew index all-indices :test #'=)))
|
||||
(loop for index in (reverse all-indices) do
|
||||
(if (<= 0 index (length links))
|
||||
|
Loading…
x
Reference in New Issue
Block a user