If a new page is opened during search, the search string was still
present in the input box even if the searching is paused in this case.
So now clear the input box and stop searching in case of a new page
load.
c->state.search.matches = 0;
c->state.search.active = FALSE;
vb_statusbar_update(c);
+ vb_echo(c, MSG_NORMAL, FALSE, "");
return TRUE;
}
#include <webkit2/webkit2.h>
#include "ascii.h"
+#include "command.h"
#include "completion.h"
#include "config.h"
#include "ex.h"
/* clear possible set marks */
marks_clear(c);
+ /* Unset possible last search. */
+ command_search(c, &((Arg){0}));
+
break;
case WEBKIT_LOAD_FINISHED: