cgmnlm

gemini line mode browser - colorful & extended fork of https://git.sr.ht/~sircmpwn/gmni
git clone git://git.clttr.info/cgmnlm.git
Log (Feed) | Files | Refs (Tags) | | README | LICENSE

commit 1c641995e7b587dfa234a2311a47a8cb8b1c9857
parent 668d4e6df92c1bd7540f99c635bef53ffe9a002f
Author: René Wagner <rwa@clttr.info>
Date:   Fri,  1 Jul 2022 11:12:00 +0200

formatting

Diffstat:
Msrc/gmnlm.c | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/gmnlm.c b/src/gmnlm.c @@ -652,7 +652,9 @@ do_prompts(const char *prompt, struct browser *browser) result = PROMPT_ANSWERED; goto exit; case 'b': - if (in[1]) historyhops =(int)strtol(in+1, &endptr, 10); + if (in[1]) { + historyhops =(int)strtol(in+1, &endptr, 10); + } while (historyhops > 0) { if (browser->history->prev) { browser->history = browser->history->prev; @@ -663,7 +665,9 @@ do_prompts(const char *prompt, struct browser *browser) result = PROMPT_ANSWERED; goto exit; case 'f': - if (in[1]) historyhops =(int)strtol(in+1, &endptr, 10); + if (in[1]) { + historyhops =(int)strtol(in+1, &endptr, 10); + } while (historyhops > 0) { if (browser->history->next) { browser->history = browser->history->next;