Patch to make cgo display files using `cmd_text` instead of downloading/saving them. For when you want to display e.g mandoc files without saving them. diff --git a/cgo.c b/cgo.c index 89d2470..9298240 100644 --- a/cgo.c +++ b/cgo.c @@ -687,6 +687,8 @@ int follow_link(int key) if (link->key != key) continue; switch (link->which) { + case '5': /* FALLTHROUGH */ + case '9': /* FALLTHROUGH */ case '0': view_file(&config.cmd_text[0], link->host, link->port, link->selector); break; @@ -696,10 +698,6 @@ int follow_link(int key) case '7': view_search(link->host, link->port, link->selector); break; - case '5': - case '9': - view_download(link->host, link->port, link->selector); - break; case '8': view_telnet(link->host, link->port); break;