From: Daniel Carl Date: Tue, 12 Mar 2013 23:01:47 +0000 (+0100) Subject: Fixed input box cleaning after hinting to input element. X-Git-Url: https://git.owens.tech/git.owens.tech/git.owens.tech/git?a=commitdiff_plain;h=aec69588c215ffe24ffd3f24f07dd9483fa62426;p=vimb.git 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. --- 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};