~sircmpwn/gmni

4f04fb45e267cb2e6a189b60e83d703b85104c72 — OndÅ™ej Fiala 2 years ago b31e655
gmnlm: d <path> -> d [path]

The argument is optional, the 'd' command works without it.
1 files changed, 2 insertions(+), 2 deletions(-)

M src/gmnlm.c
M src/gmnlm.c => src/gmnlm.c +2 -2
@@ 83,7 83,7 @@ const char *help_msg =
	"m [title]\tSave bookmark\n"
	"M\tBrowse bookmarks\n"
	"r\tReload the page\n"
	"d <path>\tDownload page to <path>\n"
	"d [path]\tDownload page to path\n"
	"|<prog>\tPipe page into program\n"
	"\n"
	"Other commands include:\n\n"


@@ 1056,7 1056,7 @@ display_response(struct browser *browser, struct gemini_response *resp)
	if (strncmp(resp->meta, "text/", 5) == 0) {
		return display_plaintext(browser, resp);
	}
	fprintf(stderr, "Media type %s is unsupported, use \"d <path>\" to download this page\n",
	fprintf(stderr, "Media type %s is unsupported, use \"d [path]\" to download this page\n",
		resp->meta);
	return false;
}