mirror of
https://git.sr.ht/~sircmpwn/gmni
synced 2024-11-23 04:51:59 +01:00
Add 'r' to reload
This commit is contained in:
parent
5fd43e8d02
commit
f80e4037c2
@ -63,6 +63,7 @@ const char *help_msg =
|
||||
"H\tView all page history\n"
|
||||
"m\tSave bookmark\n"
|
||||
"M\tBrowse bookmarks\n"
|
||||
"r\tReload the page\n"
|
||||
"\n"
|
||||
"Other commands include:\n\n"
|
||||
"<Enter>\tread more lines\n"
|
||||
@ -300,6 +301,10 @@ do_prompts(const char *prompt, struct browser *browser)
|
||||
}
|
||||
result = PROMPT_AGAIN;
|
||||
goto exit;
|
||||
case 'r':
|
||||
if (in[1]) break;
|
||||
result = PROMPT_ANSWERED;
|
||||
goto exit;
|
||||
case '?':
|
||||
if (in[1]) break;
|
||||
fprintf(browser->tty, "%s", help_msg);
|
||||
|
Loading…
Reference in New Issue
Block a user