From: Daniel Carl Date: Mon, 17 Jul 2017 22:10:51 +0000 (+0200) Subject: Allow extended hinting g-mode also for ;o. X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=94359d4f3aef151f3a70396b4ea29c2af28ba2a3;p=vimb.git 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. --- 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) {