gemini line mode browser - colorful & extended fork of
git clone git://
Log (Feed) | Files | Refs (Tags) | | README | LICENSE

commit 668d4e6df92c1bd7540f99c635bef53ffe9a002f
parent 51e0ff2d1cb166c642729bb0d813b29881d49597
Author: Ondřej Fiala <>
Date:   Wed, 22 Jun 2022 05:39:18 +0200

gmnlm: save non-sensitive input requests in history

Currently, followup requests to both INPUT and SENSITIVE INPUT responses are
omitted from history. However, the intended use of INPUT is for searching, and
there is SENSITIVE INPUT for sensitive information, so omitting regular INPUT
from history doesn't make much sense and only makes searching annoying as one
needs to re-enter the query when going back.

Msrc/gmnlm.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gmnlm.c b/src/gmnlm.c @@ -543,7 +543,9 @@ do_requests(struct browser *browser, struct gemini_response *resp) browser->plain_url, input); free(input); assert(new_url); - set_url(browser, new_url, NULL); + set_url(browser, new_url, + resp->status == GEMINI_STATUS_SENSITIVE_INPUT ? + NULL : &browser->history); free(new_url); break; case GEMINI_STATUS_CLASS_REDIRECT: