Fix O after searching caused empty inputbox.
authorDaniel Carl <danielcarl@gmx.de>
Wed, 14 Jun 2017 21:21:28 +0000 (23:21 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Wed, 14 Jun 2017 21:21:28 +0000 (23:21 +0200)
commita5e283370dd8b20d69dcddfd50f2e5b1f8f6be77
tree2b0b4c94ae5f3556a8af441693c92bdbd6032a19
parent58ebc46370a9f55e4d798aafc404b147ac7c44ca
Fix O after searching caused empty inputbox.

In case a searching is active vimb is still in normal mode. So
'O'-keypress should write ':open URL' to the inputbox and switch vimb
into command mode. But during the switching of the modes, the already
written ':open ..' string was immediately overwritten by empty string.
So the user was left with cursor in empty inputbox.

Now the input is only cleared on stopping searching when a links was
fired during searching which is done in code during
WEBKIT_LOAD_COMMITTED event processing.
src/command.c
src/main.c