1
0
Fork 0

- [gopher] prevented crash when opening a gopher link and gopher window is not visible;

- [gopher] fixed parsing of text files.
This commit is contained in:
cage 2023-10-03 21:20:09 +02:00
parent 3ec57b9040
commit 507eed0412
2 changed files with 3 additions and 2 deletions

View File

@ -247,7 +247,8 @@
((gopher-parser::%line-type-index-search-p type)
(search-index-server host port selector))
((gopher-parser::%line-type-file-p type)
(win-close *gopher-window*)
(when *gopher-window*
(win-close *gopher-window*))
(let ((data (misc:make-fresh-array 0 :type '(unsigned-int 8))))
(gopher-client:request host
type

View File

@ -310,7 +310,7 @@
(defrule text-block (+ (not (and #\Newline #\. #\Return #\Newline)))
(:text t))
(defrule text-file (and (* text-block) (and #\Newline #\. #\Return #\Newline))
(defrule text-file (and (* text-block) (? (and #\Newline #\. #\Return #\Newline)))
(:function caar))
(defun parse-text-file (data)