From 94359d4f3aef151f3a70396b4ea29c2af28ba2a3 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Tue, 18 Jul 2017 00:10:51 +0200 Subject: [PATCH] Allow extended hinting g-mode also for ;o. The ';o' hinting was not allowed for extended hinting because it makes no sense to keep hinting open when opening a link into the same window. But the ';o' hinting matches also form fields so it is useful to allow it for extended hinting too. So the user can open the extended hinting by 'g;o' and toggle radio buttons and checkboxes and finally submit the form. --- doc/vimb.1 | 2 +- src/hints.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/vimb.1 b/doc/vimb.1 index f4a2a73..2bec4af 100644 --- a/doc/vimb.1 +++ b/doc/vimb.1 @@ -293,7 +293,7 @@ Like normal hinting, except that after a hint is selected, hints remain visible so that another one can be selected with the same action as the first. Note that the extended hint mode can only be combined with the following -hint modes \fII p P s t y Y\fP. +hint modes \fII o p P s t y Y\fP. .SS Searching .TP .BI / QUERY ", ?" QUERY diff --git a/src/hints.c b/src/hints.c index 472fe1d..e196861 100644 --- a/src/hints.c +++ b/src/hints.c @@ -228,10 +228,10 @@ gboolean hints_parse_prompt(const char *prompt, char *mode, gboolean *is_gmode) char pmode = '\0'; #ifdef FEATURE_QUEUE static char *modes = "eiIoOpPstTxyY"; - static char *g_modes = "IpPstyY"; + static char *g_modes = "IopPstyY"; #else static char *modes = "eiIoOstTxyY"; - static char *g_modes = "IstyY"; + static char *g_modes = "IostyY"; #endif if (!prompt) { -- 2.20.1