Fixed input box cleaning after hinting to input element.
authorDaniel Carl <danielcarl@gmx.de>
Tue, 12 Mar 2013 23:01:47 +0000 (00:01 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Tue, 12 Mar 2013 23:01:47 +0000 (00:01 +0100)
If a form input element was focused via hinting, the message to the user
-- INPUT -- was removed from input box. Now we don't clear the input box if
the element is focused by hinting to keep the user informed about the current
mode.

src/hints.c

index 3b85eaa..db89903 100644 (file)
@@ -136,7 +136,7 @@ static void hints_run_script(Client* c, char* js)
         vp_set_mode(c, VP_MODE_NORMAL, TRUE);
     } else if (!strncmp(value, "INSERT:", 7)) {
         hints_observe_input(c, FALSE);
-        vp_set_mode(c, VP_MODE_INSERT, TRUE);
+        vp_set_mode(c, VP_MODE_INSERT, FALSE);
     } else if (!strncmp(value, "DATA:", 5)) {
         hints_observe_input(c, FALSE);
         Arg a = {0};