summaryrefslogtreecommitdiff
path: root/src/dwb.c
diff options
context:
space:
mode:
authorportix <none@none>2012-12-11 11:07:38 +0100
committerportix <none@none>2012-12-11 11:07:38 +0100
commitd701849f7925ab0950f632129e23bce1b7d889af (patch)
treeb9e9b1d70e3a2a672d47ce9ea0ac81f688fa09e6 /src/dwb.c
parent21336c9980b9ef298c2c249200b333069c8ceaa3 (diff)
downloaddwb-d701849f7925ab0950f632129e23bce1b7d889af.zip
Remove most exceptions in scripts.c; Regression: don't change to normal_mode in view_navigation_policy_cb, it can break some sites like google translator
Diffstat (limited to 'src/dwb.c')
-rw-r--r--src/dwb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dwb.c b/src/dwb.c
index 19a76443..4d87c1f5 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -1772,6 +1772,9 @@ dwb_clean_load_begin(GList *gl)
v->status->ssl = SSL_NONE;
v->plugins->status &= ~PLUGIN_STATUS_HAS_PLUGIN;
+ if (gl == dwb.state.fview && (dwb.state.mode == INSERT_MODE || dwb.state.mode == FIND_MODE))
+ dwb_change_mode(NORMAL_MODE, true);
+
view_set_favicon(gl, false);
}/*}}}*/