Don't switch to normal mode in load committed (#95).
authorDaniel Carl <danielcarl@gmx.de>
Fri, 1 Aug 2014 12:10:03 +0000 (14:10 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Fri, 1 Aug 2014 12:10:03 +0000 (14:10 +0200)
commit60baf0abd58138d26d8397cec4091b4ade7b5959
treec012b08282f6259add421648f28bfcd79f532122
parent628aded1e13404811060341f17fee0bef724baf7
Don't switch to normal mode in load committed (#95).

On pages like translate.google.com where JavaScript changes the location hash
of the page, webkit performs nearly a new load of the page. This caused vimb
to switch from input to normal mode like intended if a form is submitted out
of input mode.

If only the location hash of a loaded page is changed, the used load-status
are WEBKIT_LOAD_COMMITTED and WEBKIT_LOAD_FIRST_VISUALLY_NON_EMPTY_LAYOUT. So
we can't switch to normal mode in load committed.
src/main.c