From: Daniel Carl Date: Wed, 19 Dec 2012 14:19:29 +0000 (+0100) Subject: Remove -- INPUT -- from inputbox after submitting a form. X-Git-Url: https://git.owens.tech/assets/favicon.png/assets/favicon.png/git?a=commitdiff_plain;h=09204187e4c3b548369772dbe2d07857098f1d97;p=vimb.git Remove -- INPUT -- from inputbox after submitting a form. --- diff --git a/src/main.c b/src/main.c index c9f19c6..c45d831 100644 --- a/src/main.c +++ b/src/main.c @@ -305,6 +305,10 @@ gboolean vp_set_mode(Mode mode, gboolean clean) if (GET_CLEAN_MODE() == VP_MODE_HINTING) { hints_clear(); } + /* clean the input if current mode is insert to remove -- INPUT -- */ + if (GET_CLEAN_MODE() == VP_MODE_INSERT) { + clean = TRUE; + } gtk_widget_grab_focus(GTK_WIDGET(vp.gui.webview)); break;