mirror of https://codeberg.org/cage/tinmop/
- [gemini] prevented crash happening when trying to render a TOC from an empty gemtext.
This commit is contained in:
parent
29c6f6b7d5
commit
fd39d15050
|
@ -86,7 +86,8 @@
|
|||
(defun highlight-current-section (visible-rows window)
|
||||
(declare (ignore window))
|
||||
(when-let* ((toc-win *gemini-toc-window*)
|
||||
(line-fields (fields (first visible-rows)))
|
||||
(first-row (first visible-rows))
|
||||
(line-fields (fields first-row))
|
||||
(gid (getf line-fields :group-id))
|
||||
(index (position-if (lambda (a) (= (getf (fields a) :group-id)
|
||||
gid))
|
||||
|
|
Loading…
Reference in New Issue