mirror of
https://codeberg.org/cage/tinmop/
synced 2025-01-01 00:57:20 +01:00
-[gemini] added urls to history if document is loaded from cached content too.
This commit is contained in:
parent
b846dff5ba
commit
edd1aba2fe
@ -34,7 +34,8 @@
|
||||
(defmethod append-metadata-source ((object gemini-metadata) source-file)
|
||||
(setf (gemini-metadata-source-file object)
|
||||
(strcat (gemini-metadata-source-file object)
|
||||
source-file)))
|
||||
source-file))
|
||||
object)
|
||||
|
||||
(defun add-url-to-history (window url)
|
||||
(let* ((metadata (message-window:metadata window))
|
||||
@ -43,7 +44,8 @@
|
||||
(when (string/= last-entry
|
||||
url)
|
||||
(setf (gemini-metadata-history metadata)
|
||||
(reverse (push url history))))))
|
||||
(reverse (push url history))))
|
||||
window))
|
||||
|
||||
(defun maybe-initialize-metadata (window)
|
||||
(when (not (gemini-metadata-p (message-window:metadata window)))
|
||||
|
@ -442,7 +442,9 @@
|
||||
(multiple-value-bind (actual-iri host path query port fragment)
|
||||
(displace-iri parsed-iri)
|
||||
(if (find-db-stream-url actual-iri)
|
||||
(db-entry-to-foreground actual-iri)
|
||||
(progn
|
||||
(add-url-to-history specials:*message-window* actual-iri)
|
||||
(db-entry-to-foreground actual-iri))
|
||||
(request (gemini-parser:make-gemini-iri host
|
||||
path
|
||||
:query query
|
||||
|
Loading…
Reference in New Issue
Block a user