cgmnlm

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/cgmnlm.git
Log | Files | Refs | README | LICENSE

commit 71ececc4f264eed36f022b4b52c9100b9e7b1b12
parent ae43b9190e1a18796222b94ec1e78b35f5826964
Author: René Wagner <rwagner@rw-net.de>
Date:   Fri,  1 Jan 2021 12:41:02 +0100

add [N]| command to help

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

diff --git a/src/gmnlm.c b/src/gmnlm.c @@ -89,6 +89,7 @@ const char *help_msg = "r\tReload the page\n" "d <path>\tDownload page to <path>\n" "|<prog>\tPipe page into program\n" + "[N]|<prog>\tPipe content of Nth link into program\n" "\n" "Other commands include:\n\n" "<Enter>\tread more lines\n" @@ -791,7 +792,7 @@ repeat: break; case GEMINI_LINK: if (text == NULL) { - col += fprintf(out, "%2d> %s", nlinks++, ANSI_COLOR_CYAN); + col += fprintf(out, "%2d) %s", nlinks++, ANSI_COLOR_CYAN); text = trim_ws(tok.link.text ? tok.link.text : tok.link.url); *next = calloc(1, sizeof(struct link)); (*next)->url = strdup(trim_ws(tok.link.url));