From aec69588c215ffe24ffd3f24f07dd9483fa62426 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Wed, 13 Mar 2013 00:01:47 +0100 Subject: [PATCH] Fixed input box cleaning after hinting to input element. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hints.c b/src/hints.c index 3b85eaa..db89903 100644 --- a/src/hints.c +++ b/src/hints.c @@ -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}; -- 2.20.1